[][src]Function x86::bits32::eflags::stac

pub unsafe fn stac()

Sets the AC flag bit in EFLAGS register.

This may enable alignment checking of user-mode data accesses. This allows explicit supervisor-mode data accesses to user-mode pages even if the SMAP bit is set in the CR4 register.

Unsafe

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