Function hal_x86_64::cpu::intrinsics::cli

source ·
pub unsafe fn cli()
Expand description

Perform one x86 cli instruction.

cli disables CPU interrupts.

Safety

Intrinsics are inherently unsafe — this is just a less ugly way of writing inline assembly. Also, this does not guarantee that interrupts will be re-enabled, ever.

Prefer the higher-level interrupt::Control::enter_critical API when possible.