Skip to main content

enter_usermode

Function enter_usermode 

Source
unsafe fn enter_usermode(entry: u64, user_sp: u64) -> !
Expand description

Build an iretq frame on the current (kernel) stack and iretq into ring 3. We set CS/SS to the user segments with RPL=3, and RFLAGS with IF set so the user program runs with interrupts enabled.