1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

Kernel: Log instead of crashing when getting a page fault during IRQ

This is definitely a bug, but it seems to happen randomly every now
and then and we need more info to track it down, so let's log for now.
This commit is contained in:
Andreas Kling 2020-02-21 19:05:45 +01:00
parent c4c1ad2289
commit b298c01e92

View file

@ -296,7 +296,8 @@ PageFaultResponse MemoryManager::handle_page_fault(const PageFault& fault)
{
ASSERT_INTERRUPTS_DISABLED();
ASSERT(Thread::current);
ASSERT(!g_in_irq);
if (g_in_irq)
dbg() << "BUG! Page fault while handling IRQ! code=" << fault.code() << ", vaddr=" << fault.vaddr();
#ifdef PAGE_FAULT_DEBUG
dbgprintf("MM: handle_page_fault(%w) at V%p\n", fault.code(), fault.vaddr().get());
#endif