⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

restore_smap

Function restore_smap 

Source
pub fn restore_smap()
Expand description

Restore SMAP after a temporary user-memory access.

On x86_64 this executes CLAC (Clear AC Flag). On AArch64, sets PSTATE.PAN. On RISC-V, clears the SUM bit.