1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:27:35 +00:00

Kernel: Put page fault logspam behind PAGE_FAULT_DEBUG.

This commit is contained in:
Andreas Kling 2019-02-10 11:37:59 +01:00
parent 5e8d6b1bf4
commit 9860e55047
2 changed files with 8 additions and 0 deletions

View file

@ -237,6 +237,7 @@ void exception_14_handler(RegisterDumpWithExceptionCode& regs)
dword fault_page_directory;
asm ("movl %%cr3, %%eax":"=a"(fault_page_directory));
#ifdef PAGE_FAULT_DEBUG
dbgprintf("%s(%u): ring%u %s page fault in PD=%x, %s L%x\n",
current->name().characters(),
current->pid(),
@ -245,6 +246,7 @@ void exception_14_handler(RegisterDumpWithExceptionCode& regs)
fault_page_directory,
regs.exception_code & 2 ? "write" : "read",
faultAddress);
#endif
word ss;
dword esp;