summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-07-17 00:22:11 -0400
committerIan Moffett <ian@osmora.org>2024-07-17 00:22:11 -0400
commitb1e73a96d935260f913410d66f77a52c4daf3f48 (patch)
tree8aa7a8368d393ae85f7f2ddfe7e3712c051089e4 /sys
parentc22af10c12d87a3d9beda7afa94c95b313536d06 (diff)
kernel: Call sched_enter() instead of cpu_reboot()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/init_main.c3
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();
}