From b43aa48e5e54db5bb917cc33cd13105f36b3ba2c Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 29 Sep 2025 20:02:36 -0400 Subject: kern: init: Initialize namespaces before modules Some modules rely on the object namespace to keep track of state for them. So we need to initialize the namespace before we initialize those modules Signed-off-by: Ian Moffett --- src/sys/os/os_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/os/os_init.c b/src/sys/os/os_init.c index 7f1b89f..fdc83c7 100644 --- a/src/sys/os/os_init.c +++ b/src/sys/os/os_init.c @@ -75,6 +75,7 @@ main(void) cpu_init(&g_bsp); bsp_ap_startup(); vfs_init(); + ns_init(); /* Initialize generic modules */ __MODULES_INIT(MODTYPE_GENERIC); @@ -89,7 +90,6 @@ main(void) panic("could not load init\n"); } - ns_init(); md_set_ip(&g_rootproc, elf.entrypoint); md_proc_kick(&g_rootproc); panic("end of kernel reached\n"); -- cgit v1.2.3