Add svcSetThreadPriority

This commit is contained in:
fincs 2014-11-29 21:40:59 +01:00
parent c75ed65d8b
commit ac0e9ef9ca
2 changed files with 12 additions and 6 deletions

View File

@ -76,5 +76,6 @@ s32 svcConnectToPort(volatile Handle* out, const char* portName);
s32 svcSendSyncRequest(Handle session);
s32 svcGetProcessId(u32 *out, Handle handle);
s32 svcOutputDebugString(const char* str, int length);
s32 svcSetThreadPriority(Handle thread, s32 prio);
#endif

View File

@ -259,6 +259,12 @@ svcGetProcessId:
str r1, [r3]
bx lr
.global svcSetThreadPriority
.type svcSetThreadPriority, %function
svcSetThreadPriority:
svc 0x0C
bx lr
.global svcOutputDebugString
.type svcOutputDebugString, %function
svcOutputDebugString:
@ -267,4 +273,3 @@ svcOutputDebugString:
ldr r2, [sp], #4
str r1, [r2]
bx lr