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:
parent
5e8d6b1bf4
commit
9860e55047
2 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue