kern: dump page table on user exception

This commit is contained in:
Michael Scire 2020-07-21 00:56:13 -07:00 committed by SciresM
parent 266001ded4
commit dea1235e12
5 changed files with 145 additions and 1 deletions

View file

@ -46,7 +46,10 @@ namespace ams::kern::arch::arm64 {
MESOSPHERE_LOG("PC = %016lx\n", context->pc);
MESOSPHERE_LOG("SP = %016lx\n", context->sp);
MESOSPHERE_PANIC("Unhandled Exception in Supervisor Mode\n");
/* Dump the page tables. */
GetCurrentProcess().GetPageTable().DumpTable();
MESOSPHERE_PANIC("Unhandled Exception in User Mode\n");
const u64 ec = (esr >> 26) & 0x3F;
switch (ec) {