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

switch_to_user

Function switch_to_user 

Source
pub fn switch_to_user()
Expand description

Switch to the shadow (user-mode) page table.

Called just before returning to Ring 3 (e.g., after syscall completion or interrupt return). Loads the shadow CR3 which lacks kernel mappings.