MCPcopy Create free account
hub / github.com/Ruddle/Fomos / page_fault_handler

Function page_fault_handler

bootloader/kernel/src/interrupts.rs:261–273  ·  view source on GitHub ↗
(
    stack_frame: InterruptStackFrame,
    error_code: PageFaultErrorCode,
)

Source from the content-addressed store, hash-verified

259use x86_64::structures::idt::PageFaultErrorCode;
260
261extern "x86-interrupt" fn page_fault_handler(
262 stack_frame: InterruptStackFrame,
263 error_code: PageFaultErrorCode,
264) {
265 use x86_64::registers::control::Cr2;
266
267 log::error!("EXCEPTION: PAGE FAULT");
268 log::error!("Accessed Address: {:?}", Cr2::read());
269 log::error!("Error Code: {:?}", error_code);
270 // log::error!("{:#?}", stack_frame);
271
272 panic!("EXCEPTION: PAGE FAULT\n{:#?}", stack_frame);
273}
274
275extern "x86-interrupt" fn ioapic_handler_0(stack_frame: InterruptStackFrame) {
276 log::info!("______ioapic_handler_0_____");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected