pub fn read_trapframe_from_kstack(kstack_top: usize) -> TrapFrame
Available on crate feature monolithic only.
Expand description

To read the trap frame from the kernel stack

Safety

It should be guaranteed that the kstack address is valid and readable.