diff options
author | Ian Moffett <ian@osmora.org> | 2024-02-23 17:38:36 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-02-23 17:38:36 -0500 |
commit | 839034c1309bc331e4a44c8e0153f013a93ba5b5 (patch) | |
tree | 1fff6d3b251bcf7cdf1c87ecd68dfb87a1e1e136 /sys/kern/init_main.c | |
parent | 4c00208b3a50be0bc6dd240e59d6d891ef18d8b3 (diff) |
kernel: Add initial scheduler implementation
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, 4 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 2666b5e..6a60e2b 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -91,9 +91,12 @@ main(void) processor_init(); list_timers(); + sched_init(); ci = this_cpu(); - __TRY_CALL(ap_bootstrap, ci); + __TRY_CALL(ap_bootstrap, ci); sched_init_processor(ci); + + while (1); __builtin_unreachable(); } |