SVC: Implemented svcGetThreadId

This commit is contained in:
Subv 2014-12-03 21:15:38 -05:00
parent a9f68cde3b
commit a2d2f4483e
2 changed files with 11 additions and 1 deletions

View File

@ -86,4 +86,5 @@ s32 svcGetProcessInfo(s64* out, Handle process, u32 type);
s32 svcConnectToPort(volatile Handle* out, const char* portName);
s32 svcSendSyncRequest(Handle session);
s32 svcGetProcessId(u32 *out, Handle handle);
s32 svcGetThreadId(u32 *out, Handle handle);
s32 svcOutputDebugString(const char* str, int length);

View File

@ -282,3 +282,12 @@ svcReleaseSemaphore:
pop {r3}
str r1, [r3]
bx lr
.global svcGetThreadId
.type svcGetThreadId, %function
svcGetThreadId:
str r0, [sp,#-0x4]!
svc 0x37
ldr r3, [sp], #4
str r1, [r3]
bx lr