Function axhal::arch::first_into_user

source ·
#[no_mangle]
pub fn first_into_user(kernel_sp: usize)
Available on crate feature monolithic only.
Expand description

To handle the first time into the user space

  1. push the given trap frame into the kernel stack
  2. go into the user space

args:

  1. kernel_sp: the top of the kernel stack

  2. frame_base: the address of the trap frame which will be pushed into the kernel stack