From b1e73a96d935260f913410d66f77a52c4daf3f48 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 17 Jul 2024 00:22:11 -0400 Subject: kernel: Call sched_enter() instead of cpu_reboot() Signed-off-by: Ian Moffett --- sys/kern/init_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys') 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(); } -- cgit v1.2.3