From 571dc8234fbb22a05b7d8d8d4b59580a41ae1bdf Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 25 Oct 2018 12:39:59 +0200 Subject: [PATCH] Make the stage2 init task sleep dreamily when finished. Something is off about scheduling, I don't think the kernel is handing out all the available time to processes that are available to run. --- Kernel/init.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Kernel/init.cpp b/Kernel/init.cpp index 31cf17ba3e..66109f8475 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -165,6 +165,7 @@ static void init_stage2() #endif for (;;) { + sleep(3600 * TICKS_PER_SECOND); asm("hlt"); } }