Skip to main content

page_fault_handler

Function page_fault_handler 

Source
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).