kern: dump page table on user exception

This commit is contained in:
Michael Scire authored and SciresM committed 2020-07-31 14:50:52 -07:00
1 parent 266001ded4
commit dea1235e12
5 files changed
+145 -1

No files matched your search

@@ -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) {