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 (CPU exceptions like#PF,#MCor NMI can still fire) - enable_
interrupts - Set the CPU’s Interrupt Flag via
sti, unmasking hardware IRQs - halt_
cpu - Halt the CPU until an interrupt arrives