qemu_shutdown: hlt until the emulator really shuts down.
This commit is contained in:
parent
199f3a56bb
commit
4c075b8b6f
@ -4,5 +4,8 @@
|
||||
__attribute__((noreturn))
|
||||
static inline void qemu_shutdown() {
|
||||
port_word_out(0x604, 0x2000);
|
||||
while (1) {
|
||||
asm("hlt");
|
||||
}
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user