Added svcGetCurrentProcessorNumber.

Added svcGetCurrentProcessorNumber.
This commit is contained in:
AntonioND 2015-02-01 12:38:45 +01:00
parent 92fe263569
commit 948dc6c0d7
2 changed files with 7 additions and 0 deletions

View File

@ -61,6 +61,7 @@ s32 svcCreateThread(Handle* thread, ThreadFunc entrypoint, u32 arg, u32* stack_
void __attribute__((noreturn)) svcExitThread();
void svcSleepThread(s64 ns);
s32 svcSetThreadPriority(Handle thread, s32 prio);
s32 svcGetCurrentProcessorNumber(void);
s32 svcCreateMutex(Handle* mutex, bool initially_locked);
s32 svcReleaseMutex(Handle handle);
s32 svcCreateSemaphore(Handle* semaphore, s32 initial_count, s32 max_count);

View File

@ -65,6 +65,12 @@ svcSetThreadPriority:
svc 0x0C
bx lr
.global svcGetCurrentProcessorNumber
.type svcGetCurrentProcessorNumber, %function
svcGetCurrentProcessorNumber:
svc 0x11
bx lr
.global svcCreateMutex
.type svcCreateMutex, %function
svcCreateMutex: