131,6 → 131,7 |
|
wrpr %g0, 0, %tl ! TL = 0, primary context |
! register is used |
wrpr %g0, 0, %gl |
|
wrpr %g0, PSTATE_PRIV_BIT, %pstate ! disable interrupts and disable |
! 32-bit address masking |
296,6 → 297,25 |
ba 0b |
nop |
|
.align 8 |
.global temp_cpu_mondo_handler |
temp_cpu_mondo_handler: |
|
set 0x3c, %o0 |
set 0x15, %o5 |
ta 0x80 |
|
mov 0, %o0 |
setx before_ap_boots, %g1, %o1 |
setx 0x80400000, %g1, %o2 |
add %o1, %o2, %o1 |
__HYPERCALL_FAST(MMU_ENABLE) |
|
before_ap_boots: |
setx 0x80400000, %g0, %o0 |
ba kernel_image_start |
nop |
|
.section K_DATA_START, "aw", @progbits |
|
#define INITIAL_STACK_SIZE 1024 |