kernel: implement cpu IDs and per-cpu variables

This commit is contained in:
2023-03-18 19:35:00 +00:00
parent 56bc47f570
commit 57eaf4e01c
14 changed files with 232 additions and 18 deletions

View File

@@ -5,7 +5,7 @@
#include <socks/object.h>
#include <socks/sched.h>
#include <socks/machine/init.h>
#include <socks/machine/cpu.h>
#include <socks/cpu.h>
extern unsigned long get_rflags(void);
@@ -23,7 +23,9 @@ void kernel_init(uintptr_t arg)
object_bootstrap();
sched_init();
printk("kernel_init() running on processor %u", this_cpu());
run_all_tests();
ml_halt_cpu();
}