x86_64: init local apic on boot, or legacy pic/pit as fallback

This commit is contained in:
2023-03-19 20:36:36 +00:00
parent 7e26050bde
commit 8e9127cd6a
13 changed files with 274 additions and 72 deletions

View File

@@ -20,12 +20,11 @@ void kernel_init(uintptr_t arg)
{
ml_init(arg);
object_bootstrap();
sched_init();
printk("kernel_init() running on processor %u", this_cpu());
run_all_tests();
ml_halt_cpu();
while (1) {
ml_cpu_pause();
}
}