summaryrefslogtreecommitdiff
path: root/kernel/src/io
diff options
context:
space:
mode:
authorNatrixAeria <upezu@student.kit.edu>2021-03-22 20:36:15 +0100
committerNatrixAeria <upezu@student.kit.edu>2021-03-22 20:36:15 +0100
commit861073d07b0fd70c5017fa96aa67dd7df4de9443 (patch)
tree726dd42c9d9fe4e01d59f24d7f55f1e3cf142532 /kernel/src/io
parent2701fe07b4c8c9b6a36112c98fbfc900acbd6cf3 (diff)
Refresh rust version
Diffstat (limited to 'kernel/src/io')
-rw-r--r--kernel/src/io/qemu.rs3
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")
}
}