Kernel: Don't dump regions twice when crashing due to bad access

For whatever reason we were dumping regions when first handling the
page fault, and then again when tearing down the process.
This commit is contained in:
Andreas Kling 2021-03-30 11:49:35 +02:00
parent 664571c88f
commit 54f6b52f71
Notes: sideshowbarker 2024-07-18 20:57:22 +09:00

View File

@ -475,7 +475,6 @@ PageFaultResponse MemoryManager::handle_page_fault(const PageFault& fault)
dbgln_if(PAGE_FAULT_DEBUG, "MM: CPU[{}] handle_page_fault({:#04x}) at {}", Processor::id(), fault.code(), fault.vaddr());
auto* region = find_region_from_vaddr(fault.vaddr());
if (!region) {
Process::current()->space().dump_regions();
return PageFaultResponse::ShouldCrash;
}