Kernel: APs now start their idle threads when scheduler is started

This commit is contained in:
2024-03-09 23:51:40 +02:00
parent 55d2a64f54
commit 45d6caa1d0
3 changed files with 11 additions and 3 deletions

View File

@@ -217,6 +217,7 @@ extern "C" void ap_main()
dprintln("ap{} initialized", Processor::current_id());
for (;;)
asm volatile("hlt");
while (!Scheduler::is_started())
__builtin_ia32_pause();
Scheduler::get().start();
}