Function os::trap::trap_return

source ·
#[no_mangle]
pub fn trap_return() -> !
Expand description

return to user space set the new addr of __restore asm function in TRAMPOLINE page, set the reg a0 = trap_cx_ptr, reg a1 = phy addr of usr page table, finally, jump to new addr of __restore asm function