SVC: Implemented svcGetThreadId
This commit is contained in:
parent
a9f68cde3b
commit
a2d2f4483e
@ -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);
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user