Changeset 398e7688 in mainline
- Timestamp:
- 2006-09-29T18:01:54Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 34bd143
- Parents:
- c23baab
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/sparc64/loader/boot.S
rc23baab r398e7688 59 59 * Disable interrupts and disable address masking. 60 60 */ 61 rdpr %pstate, %g2 62 and %g2, ~(PSTATE_IE_BIT|PSTATE_AM_BIT), %g2 63 wrpr %g2, 0, %pstate 61 wrpr %g0, PSTATE_PRIV_BIT, %pstate 64 62 65 set initial_stack_top, % g366 add % g3, -STACK_BIAS, %sp63 set initial_stack_top, %sp 64 add %sp, -STACK_BIAS, %sp 67 65 68 66 set ofw_cif, %l0 -
boot/arch/sparc64/loader/register.h
rc23baab r398e7688 31 31 32 32 #define PSTATE_IE_BIT 2 33 #define PSTATE_PRIV_BIT 4 33 34 #define PSTATE_AM_BIT 8 34 35 -
kernel/arch/sparc64/src/start.S
rc23baab r398e7688 77 77 78 78 /* 79 * Copy the bootinfo structure passed from the boot loader80 * to the kernel bootinfo structure.81 */82 brz %l7, 0f ! skip if you are not the bootstrap CPU83 nop84 85 sethi %hi(bootinfo), %o086 call memcpy87 or %o0, %lo(bootinfo), %o088 0:89 90 /*91 79 * Switch to kernel trap table. 92 80 */ … … 210 198 flush %g5 211 199 212 ! switch to context 0 213 stxa %g0, [VA_PRIMARY_CONTEXT_REG] %asi ! ASI_DMMU is correct here !!! 214 flush %g5 215 216 ! ensure nucleus mapping 200 ! enter nucleus - using context 0 217 201 wrpr %g0, 1, %tl 218 219 ! set context 1 in the primary context register220 mov MEM_CONTEXT_TEMP, %g1221 stxa %g1, [VA_PRIMARY_CONTEXT_REG] %asi ! ASI_DMMU is correct here !!!222 flush %g5223 202 224 203 ! demap context 1 … … 231 210 flush %g5 232 211 233 ! set TL back to0212 ! leave nucleus - using primary context, i.e. context 0 234 213 wrpr %g0, 0, %tl 235 214 236 215 brz %l7, 1f ! skip if you are not the bootstrap CPU 237 216 nop 217 218 sethi %hi(bootinfo), %o0 219 call memcpy ! copy bootinfo 220 or %o0, %lo(bootinfo), %o0 238 221 239 222 call arch_pre_main … … 272 255 nop 273 256 274 275 257 /* 276 258 * Configure stack for the AP.
Note:
See TracChangeset
for help on using the changeset viewer.