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 svcSendSyncRequest(Handle session);
s32 svcGetProcessId(u32 *out, Handle handle); s32 svcGetProcessId(u32 *out, Handle handle);
s32 svcOutputDebugString(const char* str, int length); s32 svcOutputDebugString(const char* str, int length);
s32 svcSetThreadPriority(Handle thread, s32 prio);
#endif #endif

View File

@ -259,12 +259,17 @@ svcGetProcessId:
str r1, [r3] str r1, [r3]
bx lr bx lr
.global svcSetThreadPriority
.type svcSetThreadPriority, %function
svcSetThreadPriority:
svc 0x0C
bx lr
.global svcOutputDebugString .global svcOutputDebugString
.type svcOutputDebugString, %function .type svcOutputDebugString, %function
svcOutputDebugString: svcOutputDebugString:
str r0, [sp,#-0x4]! str r0, [sp,#-0x4]!
svc 0x3D svc 0x3D
ldr r2, [sp], #4 ldr r2, [sp], #4
str r1, [r2] str r1, [r2]
bx lr bx lr