summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/boot.asm6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/boot.asm b/src/boot.asm
index abfa9d5..631a99a 100644
--- a/src/boot.asm
+++ b/src/boot.asm
@@ -113,7 +113,11 @@ _end_of_test:
call pm_print_string
call pm_print_newline
- jmp $
+; end of C, disable interupts again, NMIs can still happen
+ cli
+_halt_loop:
+ hlt
+ jmp _halt_loop
MESSAGE_PROTECTED_MODE:
db "Switched to 32-bit Protected Mode", 0