From cd0fc7f52c8d5376ad7fa4287932e00674ebff9a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 9 Aug 2021 13:19:26 +0200 Subject: [PATCH] Kernel/SMP: Mark s_smp_enabled READONLY_AFTER_INIT We can't enter/leave SMP mode once the kernel is up and running. --- Kernel/Arch/x86/common/Processor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Arch/x86/common/Processor.cpp b/Kernel/Arch/x86/common/Processor.cpp index bfc41f851b..e28bee102e 100644 --- a/Kernel/Arch/x86/common/Processor.cpp +++ b/Kernel/Arch/x86/common/Processor.cpp @@ -31,7 +31,7 @@ READONLY_AFTER_INIT FPUState Processor::s_clean_fpu_state; READONLY_AFTER_INIT static ProcessorContainer s_processors {}; READONLY_AFTER_INIT Atomic Processor::g_total_processors; -static volatile bool s_smp_enabled; +READONLY_AFTER_INIT static volatile bool s_smp_enabled; static Atomic s_message_pool; Atomic Processor::s_idle_cpu_mask { 0 };