Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
76
pub fn current_trap_cx() -> &'static mut TrapContext {
77
current_task()
78
.unwrap()
79
.inner_exclusive_access()
80
.get_trap_cx()
81
}
82
83
pub fn current_trap_cx_user_va() -> usize {
84
current_task()
Callers
1
trap_handler
Function · 0.85
Calls
3
current_task
Function · 0.85
get_trap_cx
Method · 0.80
inner_exclusive_access
Method · 0.45
Tested by
no test coverage detected