Module trap

Source

Re-exportsยง

pub use context::TrapContext;

Modulesยง

context ๐Ÿ”’

Functionsยง

enable_timer_interrupt
init
set_kernel_trap_entry ๐Ÿ”’
set_user_trap_entry ๐Ÿ”’
trap_from_kernel
Unimplement: traps/interrupts/exceptions from kernel mode Todo: Chapter 9: I/O device
trap_handler
handle an interrupt, exception, or system call from user space
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