Add svcGetHandleInfo. (#324)

This commit is contained in:
Mrrraou 2016-12-19 00:02:43 +01:00 committed by fincs
parent 34015acd3f
commit b5a8183dbd
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); 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));

View File

@ -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