diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-15 20:17:48 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-15 20:17:48 -0400 |
commit | 4c30aee5bf5763aee8086ca8f65fb62aa05d2c60 (patch) | |
tree | 86e15a2ceedfa69f0268891e4977741fd05a413f /src | |
parent | d3bac86f0d0055fc52377deea669bcadd6d8dffb (diff) |
kern: init: Initialize scheduler before modules
Some modules may rely on kernel threads, therefore we'll need the
scheduler up before we start them
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/sys/os/os_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sys/os/os_init.c b/src/sys/os/os_init.c index 43468b3..56488ae 100644 --- a/src/sys/os/os_init.c +++ b/src/sys/os/os_init.c @@ -77,10 +77,11 @@ main(void) vfs_init(); ns_init(); + sched_init(); + /* Initialize generic modules */ __MODULES_INIT(MODTYPE_GENERIC); - sched_init(); core = this_core(); proc_init(&g_rootproc, 0); core->curproc = &g_rootproc; |