mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-14 23:24:26 -04:00
kern: implement memory debug
This commit is contained in:
parent
6df26d674c
commit
be8473cf65
10 changed files with 155 additions and 2 deletions
|
@ -51,6 +51,15 @@ namespace ams::kern::svc {
|
|||
KDumpObject::DumpHandle(arg0);
|
||||
}
|
||||
break;
|
||||
case ams::svc::KernelDebugType_Memory:
|
||||
if (arg0 == static_cast<u64>(-2)) {
|
||||
KDumpObject::DumpKernelMemory();
|
||||
} else if (arg0 == static_cast<u64>(-1)) {
|
||||
KDumpObject::DumpMemory();
|
||||
} else {
|
||||
KDumpObject::DumpMemory(arg0);
|
||||
}
|
||||
break;
|
||||
case ams::svc::KernelDebugType_Process:
|
||||
if (arg0 == static_cast<u64>(-1)) {
|
||||
KDumpObject::DumpProcess();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue