Add svcGetHandleInfo.

This commit is contained in:
Mrrraou 2016-12-18 23:52:49 +01:00
parent e37ebf3ef1
commit 232c2006f0
2 changed files with 16 additions and 2 deletions

View File

@ -897,6 +897,14 @@ Result svcCloseHandle(Handle handle);
*/
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.
* @param[out] out Pointer to output the system info to.
@ -969,5 +977,3 @@ Result svcContinueDebugEvent(Handle debug, u32 flags);
* @param callback Function to execute.
*/
Result svcBackdoor(s32 (*callback)(void));

View File

@ -233,6 +233,14 @@ SVC_BEGIN svcGetSystemTick
svc 0x28
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
str r0, [sp, #-0x4]!
svc 0x2A