1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
//! Special x86_64 instructions. pub mod interrupts; pub mod port; pub mod segmentation; pub mod tables; pub mod tlb; /// Cause a breakpoint exception by invoking the `int3` instruction. pub fn int3() { unsafe { asm!("int3"); } } /// Halts the CPU until the next interrupt arrives. #[inline(always)] pub fn hlt() { unsafe { asm!("hlt" :::: "volatile"); } }