Difference between revisions of "Kernel ABI"
(Add up to GetProcessorID, specify handle target types) |
(Specify GetSystemTick ABI) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 167: | Line 167: | ||
| Timer handle, initial_low, interval_low, initial_high, interval_high | | Timer handle, initial_low, interval_low, initial_high, interval_high | ||
| Result | | Result | ||
+ | |- | ||
+ | | 0x28 | ||
+ | | GetSystemTick | ||
+ | | None | ||
+ | | | ||
+ | <code>r0</code>: <code>Low 32 bits of the tick count</code> | ||
+ | <br><code>r1</code>: <code>High 32 bits of the tick count</code> | ||
|- | |- | ||
| 0x2D | | 0x2D | ||
| ConnectToPort | | ConnectToPort | ||
− | | ?? | + | | ??<br><code>r1</code>: <code>pointer to port name</code> |
− | | Result | + | | <code>r0</code>: <code>Result</code><br><code>r1</code>: <code>handle to [[KClientSession]]</code> |
|- | |- | ||
| 0x32 | | 0x32 | ||
| SendSyncRequest | | SendSyncRequest | ||
− | | handle to [[KClientSession]] | + | | <code>r0</code>: <code>handle to [[KClientSession]]</code> |
− | | Result | + | | <code>r0</code>: <code>Result<code> |
|} | |} |
Latest revision as of 11:35, 12 August 2023
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 |
|
|
0x0F | GetThreadIdealProcessor |
|
|
0x10 | SetThreadIdealProcessor |
|
|
0x11 | GetProcessorID |
None |
|
0x24 | WaitSynchronization1 |
|
|
0x1B | SetTimer | Timer handle, initial_low, interval_low, initial_high, interval_high | Result |
0x28 | GetSystemTick | None |
|
0x2D | ConnectToPort | ??r1 : pointer to port name
|
r0 : Result r1 : handle to KClientSession
|
0x32 | SendSyncRequest | r0 : handle to KClientSession
|
r0 : Result |