From 861073d07b0fd70c5017fa96aa67dd7df4de9443 Mon Sep 17 00:00:00 2001 From: NatrixAeria Date: Mon, 22 Mar 2021 20:36:15 +0100 Subject: Refresh rust version --- kernel/src/io/qemu.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kernel/src/io/qemu.rs') 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") } } -- cgit v1.2.3-70-g09d2