]> Chaos Git - corbenik/ctrulib.git/commitdiff
Add svcSetThreadPriority
authorfincs <fincs.alt1@gmail.com>
Sat, 29 Nov 2014 20:40:59 +0000 (21:40 +0100)
committerfincs <fincs.alt1@gmail.com>
Sat, 29 Nov 2014 20:40:59 +0000 (21:40 +0100)
libctru/include/3ds/svc.h
libctru/source/svc.s

index 0a023e25c9fc466af0d6999d26f79a7c18b4d309..8a82e4e88c600527c5999f1b517c3bafa3ab040a 100644 (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
index 43457aa98aba1b01a842dba9c7e534f434424db8..b16f47944e1038701b88250e335efd57075a537c 100644 (file)
@@ -259,12 +259,17 @@ svcGetProcessId:
        str r1, [r3]
        bx lr
 
+.global svcSetThreadPriority
+.type svcSetThreadPriority, %function
+svcSetThreadPriority:
+       svc 0x0C
+       bx lr
+
 .global svcOutputDebugString
 .type svcOutputDebugString, %function
 svcOutputDebugString:
-   str r0, [sp,#-0x4]!
-   svc 0x3D
-   ldr r2, [sp], #4
-   str r1, [r2]
-   bx lr
-
+       str r0, [sp,#-0x4]!
+       svc 0x3D
+       ldr r2, [sp], #4
+       str r1, [r2]
+       bx lr