Add a sys$exit and make init_stage2 call it when finished.

This commit is contained in:
Andreas Kling 2018-10-22 11:43:55 +02:00
commit 3a3c57357c
Notes: sideshowbarker 2024-07-19 18:45:39 +09:00
5 changed files with 35 additions and 3 deletions

View file

@ -192,6 +192,11 @@ static void init_stage2()
kprintf("init stage2 is done!\n");
DO_SYSCALL_A1(Syscall::PosixExit, 413);
kprintf("uh, we're still going after calling sys$exit...\n");
HANG;
for (;;) {
asm("hlt");
}