kernel: implement initcalls and a testing system

This commit is contained in:
2023-02-26 10:05:39 +00:00
parent bc1bc9fec5
commit d41ea0cd52
16 changed files with 314 additions and 40 deletions

View File

@@ -1,5 +1,6 @@
#include <stdint.h>
#include <socks/init.h>
#include <socks/test.h>
#include <socks/printk.h>
#include <socks/machine/init.h>
#include <socks/machine/cpu.h>
@@ -16,6 +17,8 @@ void print_kernel_banner(void)
void kernel_init(uintptr_t arg)
{
ml_init(arg);
run_all_tests();
ml_halt_cpu();
}