SVC: Difference between revisions
No edit summary |
|||
Line 25: | Line 25: | ||
| 0xB || [[#svcSleepThread]] || X0=nano || W0=result | | 0xB || [[#svcSleepThread]] || X0=nano || W0=result | ||
|- | |- | ||
| 0xC || svcGetThreadPriority || W1=thread_handle || W0=result, W1=prio | | 0xC || [[#svcGetThreadPriority]] || W1=thread_handle || W0=result, W1=prio | ||
|- | |- | ||
| 0xD || svcSetThreadPriority || W0=thread_handle, W1=prio || W0=result | | 0xD || [[#svcSetThreadPriority]] || W0=thread_handle, W1=prio || W0=result | ||
|- | |- | ||
| 0xE || svcGetThreadCoreMask || W2=thread_handle || W0=result, W1=out, X2=out | | 0xE || [[#svcGetThreadCoreMask]] || W2=thread_handle || W0=result, W1=out, X2=out | ||
|- | |- | ||
| 0xF || svcSetThreadCoreMask || W0=thread_handle, W1=in, X2=in2 || W0=result | | 0xF || [[#svcSetThreadCoreMask]] || W0=thread_handle, W1=in, X2=in2 || W0=result | ||
|- | |- | ||
| 0x10 || svcGetCurrentProcessorNumber || None || W0/X0=cpuid | | 0x10 || [[#svcGetCurrentProcessorNumber]] || None || W0/X0=cpuid | ||
|- | |- | ||
| 0x11 || svcSignalEvent || W0=wevent_handle || W0=result | | 0x11 || svcSignalEvent || W0=wevent_handle || W0=result | ||
Line 294: | Line 294: | ||
Setting nano=0 means "yield thread". | Setting nano=0 means "yield thread". | ||
== svcGetThreadPriority == | |||
'''Description:''' Get priority of provided thread handle. | |||
== svcSetThreadPriority == | |||
'''Description:''' Set priority of provided thread handle. | |||
Priority is a number 0-0x3F. Lower value means higher priority. | |||
== svcGetThreadCoreMask == | |||
'''Description:''' Get affinity mask of provided thread handle. | |||
== svcSetThreadCoreMask == | |||
'''Description:''' Set affinity mask of provided thread handle. | |||
== svcGetCurrentProcessorNumber == | |||
'''Description:''' Get which cpu is executing the current thread. | |||
Cpu-id is an integer in the range 0-3. | |||
== svcMapSharedMemory == | == svcMapSharedMemory == |