From da7e9d781f828f14d136ffa3dd28aa63247e9431 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Fri, 20 Oct 2023 01:42:02 +0300 Subject: [PATCH] GetCurrentCPU reporting wrong ID --- arch/amd64/cpu/smp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/amd64/cpu/smp.cpp b/arch/amd64/cpu/smp.cpp index 600072c..5603ba3 100644 --- a/arch/amd64/cpu/smp.cpp +++ b/arch/amd64/cpu/smp.cpp @@ -189,5 +189,6 @@ namespace SMP KernelAllocator.FreePages(CPUTmpStack, TO_PAGES(STACK_SIZE + 1)); /* We are going to unmap the page after we are done with it. */ Memory::Virtual().Unmap(0x0); + CPUEnabled.store(true, std::memory_order_release); } }