diff options
author | Ian Moffett <ian@osmora.org> | 2025-05-29 00:57:15 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-05-29 00:57:15 -0400 |
commit | 9c97f71f0f498f5f268473c96d64d07d81d84c84 (patch) | |
tree | cb933b4167921dd3d3bbd6bb5708be1da594ff76 | |
parent | d61b159c3629290ba94ab14cdb44ae20ff3ec8ff (diff) |
kernel: Schedule drivers after AP bootstrap
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | sys/kern/init_main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index ae3a666..123a91d 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -121,9 +121,8 @@ main(void) spawn(&g_proc0, start_init, NULL, 0, NULL); md_inton(); - /* Load all drivers */ + /* Load all early drivers */ DRIVERS_INIT(); - DRIVERS_SCHED(); #if defined(_INSTALL_MEDIA) kprintf("Hyra install media detected\n"); @@ -133,8 +132,12 @@ main(void) syslog_silence(true); - /* Bootstrap APs and here we go! */ + /* + * Bootstrap APs, schedule all other drivers + * and here we go! + */ mp_bootstrap_aps(&g_bsp_ci); + DRIVERS_SCHED(); sched_enter(); __builtin_unreachable(); } |