mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:37:43 +00:00
Kernel: Fix strange looking output on unhandled page fault
This commit is contained in:
parent
8bb361889c
commit
2709116334
1 changed files with 5 additions and 1 deletions
|
@ -259,7 +259,11 @@ void page_fault_handler(RegisterState regs)
|
|||
return;
|
||||
}
|
||||
|
||||
klog() << "tid - (" << Thread::current->tid() << ") Unrecoverable page fault, " << (regs.exception_code & PageFaultFlags::ReservedBitViolation ? "reserved bit violation / " : "") << ":" << (regs.exception_code & PageFaultFlags::InstructionFetch ? "instruction fetch / " : "") << ":" << (regs.exception_code & PageFaultFlags::Write ? "write to" : "read from") << " address " << String::format("%p", fault_address);
|
||||
klog() << "Unrecoverable page fault, "
|
||||
<< (regs.exception_code & PageFaultFlags::ReservedBitViolation ? "reserved bit violation / " : "")
|
||||
<< (regs.exception_code & PageFaultFlags::InstructionFetch ? "instruction fetch / " : "")
|
||||
<< (regs.exception_code & PageFaultFlags::Write ? "write to" : "read from")
|
||||
<< " address " << VirtualAddress(fault_address);
|
||||
u32 malloc_scrub_pattern = explode_byte(MALLOC_SCRUB_BYTE);
|
||||
u32 free_scrub_pattern = explode_byte(FREE_SCRUB_BYTE);
|
||||
u32 kmalloc_scrub_pattern = explode_byte(KMALLOC_SCRUB_BYTE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue