1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use crate::arch::x86_64::io::{outb, outl}; pub fn reboot() { unsafe { outb(0x64, 0xFE); } } pub fn shutdown() { unsafe { outl(0x604, 0x2000); outb(0x64, 0xFE); } loop { core::hint::spin_loop(); } }