Difference between revisions of "Kernel ABI"
(Add up to SetThreadAffinityMask) |
m ([in] & [out] qualifiers on some pointers) |
||
Line 50: | Line 50: | ||
| | | | ||
<code>r0</code>: <code>Handle process</code><br> | <code>r0</code>: <code>Handle process</code><br> | ||
− | <code>r1</code>: <code>[in] u8* affinitymask</code><br> | + | <code>r1</code>: <code>[in] const u8* affinitymask</code><br> |
<code>r2</code>: <code>s32 processorcount</code> | <code>r2</code>: <code>s32 processorcount</code> | ||
| | | | ||
Line 116: | Line 116: | ||
| GetThreadAffinityMask | | GetThreadAffinityMask | ||
| | | | ||
− | <code>r0</code>: <code>u8* affinitymask</code><br> | + | <code>r0</code>: <code>[out] u8* affinitymask</code><br> |
<code>r1</code>: <code>Handle thread_handle</code><br> | <code>r1</code>: <code>Handle thread_handle</code><br> | ||
<code>r2</code>: <code>s32 processorcount</code> | <code>r2</code>: <code>s32 processorcount</code> | ||
Line 126: | Line 126: | ||
| | | | ||
<code>r0</code>: <code>Handle thread_handle</code><br> | <code>r0</code>: <code>Handle thread_handle</code><br> | ||
− | <code>r1</code>: <code>const u8* affinitymask</code><br> | + | <code>r1</code>: <code>[in] const u8* affinitymask</code><br> |
<code>r2</code>: <code>s32 processorcount</code> | <code>r2</code>: <code>s32 processorcount</code> | ||
| | | |
Revision as of 21:40, 6 July 2018
Inputs are read from registers starting from r0 and outputs are written back to the same registers (also starting with r0).
ID | Name | Inputs | Outputs |
---|---|---|---|
0x01 | ControlMemory |
|
|
0x02 | QueryMemory |
|
|
0x03 | ExitProcess | None | None, doesn't return |
0x04 | GetProcessAffinityMask |
|
|
0x05 | SetProcessAffinityMask |
|
|
0x06 | GetProcessIdealProcessor |
|
|
0x07 | SetProcessIdealProcessor |
|
|
0x08 | CreateThread |
|
|
0x09 | ExitThread | None | None, doesn't return |
0x0A | SleepThread |
|
None |
0x0B | GetThreadPriority |
|
|
0x0C | SetThreadPriority |
|
|
0x0D | GetThreadAffinityMask |
|
|
0x0E | SetThreadAffinityMask |
|
|
0x24 | WaitSynchronization1 |
|
|
0x1B | SetTimer | Timer handle, initial_low, interval_low, initial_high, interval_high | Result |
0x2D | ConnectToPort | ??, pointer to port name | Result, handle to KClientSession |
0x32 | SendSyncRequest | handle to KClientSession | Result |