Add svcGetHandleInfo. (#324)
This commit is contained in:
parent
34015acd3f
commit
b5a8183dbd
@ -897,6 +897,14 @@ Result svcCloseHandle(Handle handle);
|
|||||||
*/
|
*/
|
||||||
Result svcDuplicateHandle(Handle* out, Handle original);
|
Result svcDuplicateHandle(Handle* out, Handle original);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Gets a handle info.
|
||||||
|
* @param[out] out Pointer to output the handle info to.
|
||||||
|
* @param handle Handle to get the info for.
|
||||||
|
* @param param Parameter clarifying the handle info type.
|
||||||
|
*/
|
||||||
|
Result svcGetHandleInfo(s64* out, Handle handle, u32 param);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Gets the system info.
|
* @brief Gets the system info.
|
||||||
* @param[out] out Pointer to output the system info to.
|
* @param[out] out Pointer to output the system info to.
|
||||||
@ -966,5 +974,3 @@ Result svcContinueDebugEvent(Handle debug, u32 flags);
|
|||||||
* @param callback Function to execute.
|
* @param callback Function to execute.
|
||||||
*/
|
*/
|
||||||
Result svcBackdoor(s32 (*callback)(void));
|
Result svcBackdoor(s32 (*callback)(void));
|
||||||
|
|
||||||
|
|
||||||
|
@ -233,6 +233,14 @@ SVC_BEGIN svcGetSystemTick
|
|||||||
svc 0x28
|
svc 0x28
|
||||||
bx lr
|
bx lr
|
||||||
|
|
||||||
|
SVC_BEGIN svcGetHandleInfo
|
||||||
|
str r0, [sp, #-0x4]!
|
||||||
|
svc 0x29
|
||||||
|
ldr r3, [sp], #4
|
||||||
|
str r1, [r3]
|
||||||
|
str r2, [r3,#4]
|
||||||
|
bx lr
|
||||||
|
|
||||||
SVC_BEGIN svcGetSystemInfo
|
SVC_BEGIN svcGetSystemInfo
|
||||||
str r0, [sp, #-0x4]!
|
str r0, [sp, #-0x4]!
|
||||||
svc 0x2A
|
svc 0x2A
|
||||||
|
Loading…
Reference in New Issue
Block a user