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.