summaryrefslogtreecommitdiff
path: root/arch/i386/boot
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2023-11-26 18:23:17 -0600
committerDanny Holman <dholman@gymli.org>2023-11-26 18:23:17 -0600
commitd38cf7583d06283dc9647684ccc478a4527a93b5 (patch)
tree6260e3d429da9695278d5ba696e45861b0a3a59a /arch/i386/boot
parent02e0911d60b227740bd8ff1b6142714d3bcf6472 (diff)
arch: i386: idt.c: add a stopgap to halt_catch_fire
Add a infinite while loop just in case the "hlt" instruction fails. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'arch/i386/boot')
-rw-r--r--arch/i386/boot/idt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/i386/boot/idt.c b/arch/i386/boot/idt.c
index 5088dba..61cb709 100644
--- a/arch/i386/boot/idt.c
+++ b/arch/i386/boot/idt.c
@@ -46,6 +46,7 @@ __attribute__((noreturn))
void halt_catch_fire(struct isr_frame *frame) {
dump_reg(frame);
__asm__ volatile("cli;hlt");
+ while (1);
}
__attribute__((noreturn))