Browse Source

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.
Andreas Kling 6 years ago
parent
commit
571dc8234f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Kernel/init.cpp

+ 1 - 0
Kernel/init.cpp

@@ -165,6 +165,7 @@ static void init_stage2()
 #endif
 
     for (;;) {
+        sleep(3600 * TICKS_PER_SECOND);
         asm("hlt");
     }
 }