diff options
Diffstat (limited to 'asm/asm_mp.asm')
| -rw-r--r-- | asm/asm_mp.asm | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/asm/asm_mp.asm b/asm/asm_mp.asm index f0eb9c0..c4eb4a9 100644 --- a/asm/asm_mp.asm +++ b/asm/asm_mp.asm @@ -29,23 +29,18 @@ init_pm: mov fs, ax mov gs, ax - mov ebp, 0x8000 + mov ebp, 0x7000 mov esp, ebp call boot_32_pm ;continue booting in 32-bit protected mode boot_32_pm: - hlt - jmp boot_32_pm - ;mov eax, 1 ; semaphore - ;xchg eax, [LLOCK] - ;cmp eax,1 - ;hlt - ;je $ - ;jmp $ ; loop forever here + mov eax,1 + xchg eax, [LLOCK] + cmp eax,1 + je boot_32_pm - ;call [0x8010] ;kernel_ap ;jump into our Kernel! call smp_main jmp $ ; should never be reached |
