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 (CPU exceptions like #PF, #MC or 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