From 53069ae43ea997d51d2b985a26fffdb86a59b023 Mon Sep 17 00:00:00 2001 From: Aleksa Vuckovic Date: Wed, 22 Feb 2023 18:36:16 +0100 Subject: spinlocks in printf --- kernel/src/scheduler/ap_init.S | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'kernel/src/scheduler/ap_init.S') diff --git a/kernel/src/scheduler/ap_init.S b/kernel/src/scheduler/ap_init.S index 17cffab..47efc6f 100644 --- a/kernel/src/scheduler/ap_init.S +++ b/kernel/src/scheduler/ap_init.S @@ -3,8 +3,6 @@ .SET stack_top, 0x3008000 .SET stack_off, 0x8000 -.SET bspdone, 0x3000100 -.SET aprunning, 0x3000200 .code16 ap_trampoline: @@ -53,17 +51,9 @@ _start32: cmp $0, %ecx jne 22b - -# spinlock, wait for the BSP to finish -11: - pause - cmpb $0, bspdone - jz 11b - call enable_paging lgdt gdtp - # jump into C code (should never return) ljmp $8, $_start64 @@ -86,5 +76,4 @@ _start64: .section .text _higher_half: - lock incb aprunning call ap_startup -- cgit v1.2.3