From d38cf7583d06283dc9647684ccc478a4527a93b5 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sun, 26 Nov 2023 18:23:17 -0600 Subject: 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 --- arch/i386/boot/idt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/i386') 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)) -- cgit v1.2.3