Difference between revisions of "Kernel ABI"
Jump to navigation
Jump to search
(Add up to GetProcessIdealProcessor) |
m (QueryMemory permission return is an MemoryPermission enum) |
||
Line 28: | Line 28: | ||
<code>r1</code>: <code>u32 base_process_virtual_address</code><br> | <code>r1</code>: <code>u32 base_process_virtual_address</code><br> | ||
<code>r2</code>: <code>u32 size</code><br> | <code>r2</code>: <code>u32 size</code><br> | ||
− | <code>r3</code>: <code> | + | <code>r3</code>: <code>[[Memory Management#enum_MemoryPermission|MemoryPermission]] permission</code><br> |
<code>r4</code>: <code>[[Memory_Management#enum_MemoryState|MemoryState]] state</code><br> | <code>r4</code>: <code>[[Memory_Management#enum_MemoryState|MemoryState]] state</code><br> | ||
<code>r5</code>: <code>[[Memory_Management#enum_PageFlags|PageFlags]] page_flags</code> | <code>r5</code>: <code>[[Memory_Management#enum_PageFlags|PageFlags]] page_flags</code> |
Revision as of 22:10, 4 January 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 |
0x04 | GetProcessAffinityMask |
|
|
0x04 | SetProcessAffinityMask |
|
|
0x05 | GetProcessIdealProcessor |
|
|
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 |