Skip to main content

Module trap

Module trap 

Source

Re-exportsยง

pub use context::TrapContext;

Modulesยง

context ๐Ÿ”’

Functionsยง

disable_supervisor_interrupt ๐Ÿ”’
enable_supervisor_interrupt ๐Ÿ”’
enable_timer_interrupt
init
set_kernel_trap_entry ๐Ÿ”’
set_user_trap_entry ๐Ÿ”’
trap_from_kernel
trap_handler
trap_return
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