Skip to main content

Module instructions

Module instructions 

Source
Expand description

Common wrappers around arch-specific wrappers of CPU 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
halt_forever
Calls halt_cpu in an infinite loop