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