Add svcSetThreadPriority
This commit is contained in:
parent
c75ed65d8b
commit
ac0e9ef9ca
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user