pub fn page_fault_handler(frame: &mut TrapFrame, fault_addr: u64)Expand description
handle page fault.
If the fault originated from user mode (ring 3), we kill the task instead of hanging the whole kernel: print a diagnostic, mark the task Dead, and reschedule. Kernel-mode faults are still fatal (halt).