diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-06 10:41:08 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-06 10:41:08 +0100 |
commit | 27091163344a54b10f1a15a2cbd30fccd7744de2 (patch) | |
tree | 5b0717b5c77dba56cc6c19c9596f9020ea34b0e4 /Kernel/Arch/i386 | |
parent | 8bb361889c3c37dbaa0254bb9a76dcd94aeab115 (diff) | |
download | serenity-27091163344a54b10f1a15a2cbd30fccd7744de2.zip |
Kernel: Fix strange looking output on unhandled page fault
Diffstat (limited to 'Kernel/Arch/i386')
-rw-r--r-- | Kernel/Arch/i386/CPU.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Kernel/Arch/i386/CPU.cpp b/Kernel/Arch/i386/CPU.cpp index 62624e3e53..b399f12d0c 100644 --- a/Kernel/Arch/i386/CPU.cpp +++ b/Kernel/Arch/i386/CPU.cpp @@ -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); |