mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-10-04 07:08:51 +00:00
kern: dump page table on user exception
This commit is contained in:
parent
a412b3a0de
commit
b9c642603e
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