Allow homebrew to use debug svcs (#3)

* Add debug/process inspection svcs to the npdm (the non-writing ones are useful even without debug mode enabled)

* Update the available svcs hint to match npdm
This commit is contained in:
Rajko Stojadinovic 2018-07-30 23:51:20 +02:00 committed by yellows8
parent d6e56d487f
commit 6a5013f656
2 changed files with 15 additions and 1 deletions

View File

@ -109,6 +109,20 @@
"svcCreateSharedMemory" : "0x50",
"svcMapTransferMemory" : "0x51",
"svcUnmapTransferMemory" : "0x52",
"svcDebugActiveProcess" : "0x60",
"svcBreakDebugProcess" : "0x61",
"svcTerminateDebugProcess" : "0x62",
"svcGetDebugEvent" : "0x63",
"svcContinueDebugEvent" : "0x64",
"svcGetProcessList" : "0x65",
"svcGetThreadList" : "0x66",
"svcGetDebugThreadContext" : "0x67",
"svcSetDebugThreadContext" : "0x68",
"svcQueryDebugProcessMemory" : "0x69",
"svcReadDebugProcessMemory" : "0x6A",
"svcWriteDebugProcessMemory" : "0x6B",
"svcSetHardwareBreakPoint" : "0x6C",
"svcGetDebugThreadParam" : "0x6D",
"svcConnectToPort" : "0x72",
"svcSetProcessMemoryPermission" : "0x73",
"svcMapProcessMemory" : "0x74",

View File

@ -309,7 +309,7 @@ void loadNro(void)
{ EntryType_Argv, 0, {0, 0} },
{ EntryType_NextLoadPath, 0, {0, 0} },
{ EntryType_LastLoadResult, 0, {0, 0} },
{ EntryType_SyscallAvailableHint, 0, {0xffffffffffffffff, 0x1fc00000007ffff} },
{ EntryType_SyscallAvailableHint, 0, {0xffffffffffffffff, 0x1fc1fff0007ffff} },
{ EntryType_EndOfList, 0, {0, 0} }
};