From f67ad595650954195ef064a8b91038dbd0e16842 Mon Sep 17 00:00:00 2001 From: Miguel Date: Tue, 4 Sep 2018 01:39:10 +0200 Subject: ioapic & lapic --- asm/asm_mp.asm | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'asm/asm_mp.asm') 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 -- cgit v1.2.3