MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / current_trap_cx

Function current_trap_cx

os/src/task/processor.rs:76–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74}
75
76pub fn current_trap_cx() -> &'static mut TrapContext {
77 current_task()
78 .unwrap()
79 .inner_exclusive_access()
80 .get_trap_cx()
81}
82
83pub fn current_trap_cx_user_va() -> usize {
84 current_task()

Callers 1

trap_handlerFunction · 0.85

Calls 3

current_taskFunction · 0.85
get_trap_cxMethod · 0.80

Tested by

no test coverage detected