1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

Kernel/SMP: Mark s_smp_enabled READONLY_AFTER_INIT

We can't enter/leave SMP mode once the kernel is up and running.
This commit is contained in:
Andreas Kling 2021-08-09 13:19:26 +02:00
parent f357fd91da
commit cd0fc7f52c

View file

@ -31,7 +31,7 @@ READONLY_AFTER_INIT FPUState Processor::s_clean_fpu_state;
READONLY_AFTER_INIT static ProcessorContainer s_processors {};
READONLY_AFTER_INIT Atomic<u32> Processor::g_total_processors;
static volatile bool s_smp_enabled;
READONLY_AFTER_INIT static volatile bool s_smp_enabled;
static Atomic<ProcessorMessage*> s_message_pool;
Atomic<u32> Processor::s_idle_cpu_mask { 0 };