diff --git a/drivers/misc.h b/drivers/misc.h index bbb1701..353419b 100644 --- a/drivers/misc.h +++ b/drivers/misc.h @@ -4,5 +4,8 @@ __attribute__((noreturn)) static inline void qemu_shutdown() { port_word_out(0x604, 0x2000); + while (1) { + asm("hlt"); + } __builtin_unreachable(); }