Function x86::bits32::eflags::clac

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

Clears the AC flag bit in EFLAGS register.

This disables any alignment checking of user-mode data accesses. If the SMAP bit is set in the CR4 register, this disallows explicit supervisor-mode data accesses to user-mode pages.

Safety

This instruction is only valid in Ring 0 and requires that the CPU supports the instruction (check CPUID).