Implement svcSetGpuProt and svcSetWifiEnabled

This commit is contained in:
TuxSH 2017-07-07 14:08:15 +02:00 committed by Dave Murphy
parent 325dbf02b7
commit 4d8c2ea9f5
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);
/**
* @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.
* @param type Type of state to set (the other parameters depend on it).

View File

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