summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-05-29 00:57:15 -0400
committerIan Moffett <ian@osmora.org>2025-05-29 00:57:15 -0400
commit9c97f71f0f498f5f268473c96d64d07d81d84c84 (patch)
treecb933b4167921dd3d3bbd6bb5708be1da594ff76
parentd61b159c3629290ba94ab14cdb44ae20ff3ec8ff (diff)
kernel: Schedule drivers after AP bootstrap
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/kern/init_main.c9
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();
}