mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-14 07:04:24 -04:00
kern: dump page table on user exception
This commit is contained in:
parent
266001ded4
commit
dea1235e12
5 changed files with 145 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue