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
- push the given trap frame into the kernel stack
- go into the user space
args:
-
kernel_sp: the top of the kernel stack
-
frame_base: the address of the trap frame which will be pushed into the kernel stack