diff options
Diffstat (limited to 'kernel/src/io')
-rw-r--r-- | kernel/src/io/qemu.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/src/io/qemu.rs b/kernel/src/io/qemu.rs index 8b01885..cf673da 100644 --- a/kernel/src/io/qemu.rs +++ b/kernel/src/io/qemu.rs @@ -5,11 +5,12 @@ pub enum QemuExitCode { Failed = 0x11, } -pub fn exit_qemu(exit_code: QemuExitCode) { +pub fn exit_qemu(exit_code: QemuExitCode) -> ! { use x86_64::instructions::port::Port; unsafe { let mut port = Port::new(0xf4); port.write(exit_code as u32); + unreachable!("qemu should have quitted") } } |