We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
qemu_exit
1 parent 70cc57c commit 95da0e0Copy full SHA for 95da0e0
src/arch/x86_64/kernel/processor.rs
@@ -1088,6 +1088,9 @@ fn triple_fault() -> ! {
1088
unreachable!()
1089
}
1090
1091
+/// Writes an exit code into the isa-debug-exit port.
1092
+///
1093
+/// For a value `e` written into the port, QEMU will exit with `(e << 1) | 1`.
1094
fn qemu_exit(success: bool) {
1095
let code = if success { 3 >> 1 } else { 0 };
1096
unsafe {
0 commit comments