Implement svc 0x59 and 0x5A
This commit is contained in:
parent
0475b59e12
commit
586ebd9131
@ -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).
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user