Skip to main content

Module instructions

Module instructions 

Source
Expand description

Safe wrappers around x86_64 privileged instructions.

Authors: MarioS271

Functions§

disable_interrupts
Clear the CPU’s Interrupt Flag via cli, masking hardware IRQs (NMIs and exceptions still fire).
enable_interrupts
Set the CPU’s Interrupt Flag via sti; only call once the IDT and PIC are initialized.
halt_cpu
Issue hlt, suspending the CPU until the next interrupt.