kernel: move object_bootstrap() call to kernel_init()

This commit is contained in:
2023-03-06 11:08:02 +00:00
parent eecc4c5c1a
commit 1a413189ab
3 changed files with 3 additions and 4 deletions

View File

@@ -54,8 +54,6 @@ int ml_init(uintptr_t arg)
}; };
vm_bootstrap(vm_zones, sizeof vm_zones / sizeof vm_zones[0]); vm_bootstrap(vm_zones, sizeof vm_zones / sizeof vm_zones[0]);
object_bootstrap();
return 0; return 0;
} }

View File

@@ -62,7 +62,5 @@ int ml_init(uintptr_t arg)
vm_bootstrap(vm_zones, sizeof vm_zones / sizeof vm_zones[0]); vm_bootstrap(vm_zones, sizeof vm_zones / sizeof vm_zones[0]);
object_bootstrap();
return 0; return 0;
} }

View File

@@ -2,6 +2,7 @@
#include <socks/init.h> #include <socks/init.h>
#include <socks/test.h> #include <socks/test.h>
#include <socks/printk.h> #include <socks/printk.h>
#include <socks/object.h>
#include <socks/machine/init.h> #include <socks/machine/init.h>
#include <socks/machine/cpu.h> #include <socks/machine/cpu.h>
@@ -18,6 +19,8 @@ void kernel_init(uintptr_t arg)
{ {
ml_init(arg); ml_init(arg);
object_bootstrap();
run_all_tests(); run_all_tests();
ml_halt_cpu(); ml_halt_cpu();