Implement svc 0x59 and 0x5A

This commit is contained in:
TuxSH 2017-07-03 20:35:47 +02:00
parent 0475b59e12
commit 586ebd9131
2 changed files with 22 additions and 0 deletions

View File

@ -1007,6 +1007,18 @@ Result svcGetHandleInfo(s64* out, Handle handle, u32 param);
*/ */
Result svcGetSystemInfo(s64* out, u32 type, s32 param); Result svcGetSystemInfo(s64* out, u32 type, s32 param);
/**
* @brief Sets the GPU protection register to restrict the range of the GPU DMA. 11.3+ only.
* @param useApplicationRestriction Whether to use the register value used for APPLICATION titles.
*/
Result svcSetGpuProt(bool useApplicationRestriction);
/**
* @brief Enables or disables Wi-Fi. 11.4+ only.
* @param enabled Whether to enable or disable Wi-Fi.
*/
Result svcSetWifiEnabled(bool enabled);
/** /**
* @brief Sets the current kernel state. * @brief Sets the current kernel state.
* @param type Type of state to set (the other parameters depend on it). * @param type Type of state to set (the other parameters depend on it).

View File

@ -502,6 +502,16 @@ SVC_BEGIN svcGetDmaState
bx lr bx lr
SVC_END SVC_END
SVC_BEGIN svcSetGpuProt
svc 0x59
bx lr
SVC_END
SVC_BEGIN svcSetWifiEnabled
svc 0x5A
bx lr
SVC_END
SVC_BEGIN svcDebugActiveProcess SVC_BEGIN svcDebugActiveProcess
push {r0} push {r0}
svc 0x60 svc 0x60