1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
//! Enable and disable hardware interrupts.

/// Enable hardware interrupts using the `sti` instruction.
pub unsafe fn enable() {
    asm!("sti");
}

/// Disable hardware interrupts using the `cli` instruction.
pub unsafe fn disable() {
    asm!("cli");
}