From 282a9e16f431e966af5db5f883333306f992bbe5 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 1 May 2017 11:09:23 +0200 Subject: use cli/hlt/loop construct after ending the OS --- src/boot.asm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3-54-g00ecf