1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

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
parent 79ffdb7205
commit 3a3c57357c
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");
}