Function x86::halt

source · []
pub unsafe fn halt()
Expand description

Stops instruction execution and places the processor in a HALT state.

An enabled interrupt (including NMI and SMI), a debug exception, the BINIT# signal, the INIT# signal, or the RESET# signal will resume execution. If an interrupt (including NMI) is used to resume execution after a HLT instruction, the saved instruction pointer (CS:EIP) points to the instruction following the HLT instruction.

Safety

Will cause a general protection fault if used outside of ring 0.