kernel: implement initcalls and a testing system
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include <socks/init.h>
|
||||
|
||||
|
||||
int do_initcalls(void)
|
||||
{
|
||||
return 0;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user