kernel: move object_bootstrap() call to kernel_init()
This commit is contained in:
@@ -55,8 +55,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user