Skip to content

Commit

Permalink
[hal] B: Use Magic Shutdown in QEMU PC
Browse files Browse the repository at this point in the history
  • Loading branch information
ppenna committed Sep 8, 2024
1 parent 20f6387 commit 734e4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hal/platform/pc/qemu/pc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
///
pub fn shutdown() -> ! {
unsafe {
arch::cpu::halt();
arch::io::out16(0x604, 0x2000);
};
loop {
core::hint::spin_loop();
Expand Down

0 comments on commit 734e4d5

Please sign in to comment.