We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fa1a74 commit c2ca6e6Copy full SHA for c2ca6e6
1 file changed
kernel/src/lib.rs
@@ -170,10 +170,12 @@ pub fn exit_qemu(exit_code: QemuExitCode) {
170
/// to instruct QEMU to shut down successfully.
171
///
172
#[doc(hidden)]
173
-pub fn shutdown_qemu() {
+pub fn shutdown_qemu() -> ! {
174
unsafe {
175
x86_64::instructions::port::Port::new(0x604).write(0x2000u16);
176
}
177
+
178
+ unreachable!("instruction to exit QEMU returned somehow");
179
180
181
#[cfg(test)]
0 commit comments