pub fn write_trapframe_to_kstack(kstack_top: usize, trap_frame: &TrapFrame)
Available on crate feature monolithic only.
Expand description

To write the trap frame into the kernel stack

Safety

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