diff options
author | Ian Moffett <ian@osmora.org> | 2024-06-08 18:19:51 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-06-08 18:19:51 -0400 |
commit | 55845113211400c9b1657ec3ce72b06a05efac4e (patch) | |
tree | da6030d824feeec4885f222c66ffdae988d70472 /sys/kern/init_main.c | |
parent | 71f56e9075d34fa560b23a448d58731c270aa050 (diff) |
kernel/amd64: Prepare for scheduler
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 94fa8c0..6018dfe 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -29,6 +29,7 @@ #include <sys/reboot.h> #include <sys/syslog.h> +#include <sys/sched.h> #include <dev/cons/cons.h> #include <dev/acpi/acpi.h> #include <machine/cpu.h> @@ -51,6 +52,10 @@ main(void) /* Startup the BSP */ cpu_startup(&g_bsp_ci); + /* Start scheduler and bootstrap APs */ + sched_init(); + mp_bootstrap_aps(&g_bsp_ci); + /* Nothing left to do... halt */ cpu_reboot(REBOOT_HALT); __builtin_unreachable(); |