Changeset 5360cf0 in mainline
- 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
- Location:
- boot/arch/sparc64/loader
- Files:
-
- 3 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 -
boot/arch/sparc64/loader/register.h
r00a020d r5360cf0 30 30 #define BOOT_sparc64_REGISTER_H_ 31 31 32 #define PSTATE_IE_BIT 233 #define PSTATE_PRIV_BIT 34 #define PSTATE_AM_BIT 832 #define PSTATE_IE_BIT 2 33 #define PSTATE_PRIV_BIT 4 34 #define PSTATE_AM_BIT 8 35 35 36 #define ASI_ICBUS_CONFIG 37 #define ICBUS_CONFIG_MID_SHIFT 36 #define ASI_ICBUS_CONFIG 0x4a 37 #define ICBUS_CONFIG_MID_SHIFT 17 38 38 39 39 #endif -
boot/arch/sparc64/loader/stack.h
r00a020d r5360cf0 30 30 #define BOOT_sparc64_STACK_H_ 31 31 32 #define STACK_ALIGNMENT 33 #define STACK_BIAS 34 #define STACK_WINDOW_SAVE_AREA_SIZE (16*8)32 #define STACK_ALIGNMENT 16 33 #define STACK_BIAS 2047 34 #define STACK_WINDOW_SAVE_AREA_SIZE (16 * 8) 35 35 36 36 #endif
Note:
See TracChangeset
for help on using the changeset viewer.