Skip to main content

enable

Function enable 

Source
pub fn enable()
Expand description

Enable interrupts.

This is a wrapper around the sti instruction.

This function executes sti; nop to ensure that the interrupt shadow caused by the sti instruction doesn’t last beyond this function. Use enable_and_hlt to execute hlt in sti’s interrupt shadow.