MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / page_fault_handler

Function page_fault_handler

src/interrupts.rs:99–107  ·  view source on GitHub ↗
(stackframe: InterruptStackFrame, errcode: PageFaultErrorCode)

Source from the content-addressed store, hash-verified

97use crate::hltloop;
98
99extern "x86-interrupt" fn page_fault_handler(stackframe: InterruptStackFrame, errcode: PageFaultErrorCode)
100{
101 use x86_64::registers::control::Cr2;
102 println!("[EXC] PAGE FAULT");
103 println!("[ERR] ACCESSED ADDR: {:?}", Cr2::read());
104 println!("[ERR] ERRCODE: {:?}", errcode);
105 println!("{:#?}", stackframe);
106 hltloop();
107}
108
109
110extern "x86-interrupt" fn timer_interrupt_handler(_stackframe: InterruptStackFrame)

Callers

nothing calls this directly

Calls 1

hltloopFunction · 0.85

Tested by

no test coverage detected