Changeset 5360cf0 in mainline for boot/arch/sparc64/loader/boot.S
- Timestamp:
- 2009-08-20T16:48:08Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a11099f
- Parents:
- 00a020d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/sparc64/loader/boot.S
r00a020d r5360cf0 31 31 #include <register.h> 32 32 33 #define INITIAL_STACK_SIZE 33 #define INITIAL_STACK_SIZE 8192 34 34 35 #define NWINDOWS 35 #define NWINDOWS 8 36 36 37 37 .register %g2, #scratch … … 57 57 .half 0 58 58 .half 0 59 59 60 .global silo_ramdisk_image 60 61 silo_ramdisk_image: 61 62 .word 0 63 62 64 .global silo_ramdisk_size 63 65 silo_ramdisk_size: … … 65 67 66 68 .align 8 67 1: 69 1: 68 70 /* 69 71 * Disable interrupts and disable address masking. … … 71 73 wrpr %g0, PSTATE_PRIV_BIT, %pstate 72 74 73 wrpr %g0, NWINDOWS - 2, %cansave 74 wrpr %g0, 0, %canrestore 75 wrpr %g0, 0, %otherwin 76 wrpr %g0, NWINDOWS - 1, %cleanwin 77 75 wrpr %g0, NWINDOWS - 2, %cansave ! set maximum saveable windows 76 wrpr %g0, 0, %canrestore ! get rid of windows we will never need again 77 wrpr %g0, 0, %otherwin ! make sure the window state is consistent 78 wrpr %g0, NWINDOWS - 1, %cleanwin ! prevent needless clean_window traps for kernel 79 78 80 set initial_stack_top, %sp 79 81 add %sp, -STACK_BIAS, %sp 80 82 81 83 set ofw_cif, %l0 82 83 call ofw_init 84 85 call ofw_init ! initialize OpenFirmware 84 86 stx %o4, [%l0] 85 87 … … 90 92 initial_stack: 91 93 .space INITIAL_STACK_SIZE 94 92 95 initial_stack_top: 93 96 .space STACK_WINDOW_SAVE_AREA_SIZE
Note:
See TracChangeset
for help on using the changeset viewer.