Line 7: |
Line 7: |
| ! Description | | ! Description |
| |- | | |- |
− | | 0x1 | + | | 0x01 |
| | | | | |
| | No | | | No |
| | Result ControlMemory(u32* outaddr, u32 addr0, u32 addr1, u32 size, u32 operation, u32 permissions) (outaddr is usually the same as the input addr0) | | | Result ControlMemory(u32* outaddr, u32 addr0, u32 addr1, u32 size, u32 operation, u32 permissions) (outaddr is usually the same as the input addr0) |
| |- | | |- |
− | | 0x2 | + | | 0x02 |
| | | | | |
| | No | | | No |
| | Result QueryMemory(MemoryInfo* info, PageInfo* out, u32 Addr) | | | Result QueryMemory(MemoryInfo* info, PageInfo* out, u32 Addr) |
| |- | | |- |
− | | 0x3 | + | | 0x03 |
| | | | | |
| | No | | | No |
| | void ExitProcess(void) | | | void ExitProcess(void) |
| |- | | |- |
− | | 0x4 | + | | 0x04 |
| | | | | |
| | No | | | No |
| | Result GetProcessAffinityMask(u8* affinitymask, Handle process, s32 processorcount) | | | Result GetProcessAffinityMask(u8* affinitymask, Handle process, s32 processorcount) |
| |- | | |- |
− | | 0x5 | + | | 0x05 |
| | | | | |
| | No | | | No |
| | Result SetProcessAffinityMask(Handle process, u8* affinitymask, s32 processorcount) | | | Result SetProcessAffinityMask(Handle process, u8* affinitymask, s32 processorcount) |
| |- | | |- |
− | | 0x6 | + | | 0x06 |
| | | | | |
| | No | | | No |
| | Result GetProcessIdealProcessor(s32 *idealprocessor, Handle process) | | | Result GetProcessIdealProcessor(s32 *idealprocessor, Handle process) |
| |- | | |- |
− | | 0x7 | + | | 0x07 |
| | | | | |
| | No | | | No |
| | Result SetProcessIdealProcessor(Handle process, s32 idealprocessor) | | | Result SetProcessIdealProcessor(Handle process, s32 idealprocessor) |
| |- | | |- |
− | | 0x8 | + | | 0x08 |
| | | | | |
| | Yes | | | Yes |
| | Result [[#CreateThread|CreateThread]](Handle* thread, func entrypoint, u32 arg, u32 stacktop, s32 threadpriority, s32 processorid) | | | Result [[#CreateThread|CreateThread]](Handle* thread, func entrypoint, u32 arg, u32 stacktop, s32 threadpriority, s32 processorid) |
| |- | | |- |
− | | 0x9 | + | | 0x09 |
| | | | | |
| | Yes | | | Yes |
| | void ExitThread(void) | | | void ExitThread(void) |
| |- | | |- |
− | | 0xA | + | | 0x0A |
| | | | | |
| | Yes | | | Yes |
| | void SleepThread(s64 nanoseconds) | | | void SleepThread(s64 nanoseconds) |
| |- | | |- |
− | | 0xB | + | | 0x0B |
| | | | | |
| | Yes | | | Yes |
| | Result GetThreadPriority(s32* priority, Handle thread) | | | Result GetThreadPriority(s32* priority, Handle thread) |
| |- | | |- |
− | | 0xC | + | | 0x0C |
| | | | | |
| | Yes | | | Yes |
| | Result SetThreadPriority(Handle thread, s32 priority) | | | Result SetThreadPriority(Handle thread, s32 priority) |
| |- | | |- |
− | | 0xD | + | | 0x0D |
| | | | | |
| | No | | | No |
| | Result GetThreadAffinityMask(u8* affinitymask, Handle thread, s32 processorcount) | | | Result GetThreadAffinityMask(u8* affinitymask, Handle thread, s32 processorcount) |
| |- | | |- |
− | | 0xE | + | | 0x0E |
| | | | | |
| | No | | | No |
| | Result SetThreadAffinityMask(Handle thread, u8* affinitymask, s32 processorcount) | | | Result SetThreadAffinityMask(Handle thread, u8* affinitymask, s32 processorcount) |
| |- | | |- |
− | | 0xF | + | | 0x0F |
| | | | | |
| | No | | | No |