mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[kernel] Fix SMP not starting
The cpu.cpp/smp.cpp cleanup out of kernel_main missed an important call: kernel_main never called smp::ready() to unblock the APs waiting for the scheduler to be ready.
This commit is contained in:
@@ -67,6 +67,7 @@ kernel_main(bootproto::args *args)
|
|||||||
interrupts_enable();
|
interrupts_enable();
|
||||||
|
|
||||||
scheduler *sched = new scheduler {g_num_cpus};
|
scheduler *sched = new scheduler {g_num_cpus};
|
||||||
|
smp::ready();
|
||||||
|
|
||||||
// Load the init server
|
// Load the init server
|
||||||
load_init_server(*args->init, args->modules);
|
load_init_server(*args->init, args->modules);
|
||||||
|
|||||||
Reference in New Issue
Block a user