1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:47:45 +00:00

Kernel: Dump backtrace on user process page fault.

This commit is contained in:
Andreas Kling 2019-04-28 22:05:13 +02:00
parent 5dee5c325e
commit 89df887e1f

View file

@ -7,6 +7,7 @@
#include "IRQHandler.h"
#include "PIC.h"
#include "Scheduler.h"
#include <Kernel/KSyms.h>
//#define PAGE_FAULT_DEBUG
@ -280,6 +281,7 @@ void exception_14_handler(RegisterDumpWithExceptionCode& regs)
regs.exception_code & 2 ? "write" : "read",
faultAddress);
dump(regs);
dump_backtrace(ksyms_ready);
current->process().crash();
} else if (response == PageFaultResponse::Continue) {
#ifdef PAGE_FAULT_DEBUG