diff options
author | Ian Moffett <ian@osmora.org> | 2024-07-17 00:22:11 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-07-17 00:22:11 -0400 |
commit | b1e73a96d935260f913410d66f77a52c4daf3f48 (patch) | |
tree | 8aa7a8368d393ae85f7f2ddfe7e3712c051089e4 | |
parent | c22af10c12d87a3d9beda7afa94c95b313536d06 (diff) |
kernel: Call sched_enter() instead of cpu_reboot()
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | sys/kern/init_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index e748293..f1d0bf1 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -91,7 +91,6 @@ main(void) memset(&proc0, 0, sizeof(proc0.tf)); fork1(&proc0, 0, start_init, NULL); - /* Nothing left to do... halt */ - cpu_reboot(REBOOT_HALT); + sched_enter(); __builtin_unreachable(); } |