Skip to main content

exec

Function exec 

Source
pub fn exec(file_name: &str)
Expand description
  1. loads the program into current address space
  2. create and map a user stack
  3. set TSS RSP0 so interrupts from user mode land on the kernel stack
  4. switch to user mode via iretq (point of no return)