SVC: Difference between revisions
Emufan4568 (talk | contribs) m Correct svc name from switchbrew |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 753: | Line 753: | ||
| style="background: red" | No | | style="background: red" | No | ||
| style="background: red" | No | | style="background: red" | No | ||
| Result | | Result SetResourceLimitLimitValues(Handle res_limit, LimitableResource* resource_type_list, s64* resource_list, u32 count) | ||
| | | | ||
|- | |- | ||
Line 1,311: | Line 1,311: | ||
| Yes | | Yes | ||
| Yes | | Yes | ||
| | | Power state change. Takes one u32 parameter. | ||
0: shutdown/reboot. hangs the Arm11. Used by kernelpanic and PTM. This makes all cores enter a WFI/B infinite loop. | |||
|- | |- | ||
| 6 | | 6 | ||
Line 1,340: | Line 1,338: | ||
| Yes | | Yes | ||
| No | | No | ||
| | | Hangs the Arm9, using a code path similar to the one used on firmlaunch. Used by PTM on shutdown/reboot. | ||
|- | |- | ||
| 9 | | 9 | ||
Line 1,409: | Line 1,407: | ||
| 0 | | 0 | ||
| | | | ||
| Returns the amount of | | Returns the amount of private (code, data, regular heap) and shared memory used by the process + total supervisor-mode stack size + page-rounded size of the external handle table. This is the amount of physical memory the process is using, minus TLS, main thread stack and linear memory. | ||
|- | |- | ||
| 1 | | 1 | ||
| | | | ||
| Returns the amount of < | | Returns the amount of <related unused field> + total supervisor-mode stack size + page-rounded size of the external handle table | ||
|- | |- | ||
| 2 | | 2 | ||
| | | | ||
| Returns the amount of | | Returns the amount of private (code, data, heap) memory used by the process + total supervisor-mode stack size + page-rounded size of the external handle table | ||
|- | |- | ||
| 3 | | 3 | ||
| | | | ||
| Returns the amount of < | | Returns the amount of <related unused field> + total supervisor-mode stack size + page-rounded size of the external handle table | ||
|- | |- | ||
| 4 | | 4 | ||
| | | | ||
| Returns the amount handles in use by the process. | | Returns the amount of handles in use by the process. | ||
|- | |- | ||
| 5 | | 5 | ||
Line 1,449: | Line 1,447: | ||
| 19 | | 19 | ||
| Stub: [[8.0.0-18]]. Implementation: [[11.3.0-36|11.3.0-X]]. | | Stub: [[8.0.0-18]]. Implementation: [[11.3.0-36|11.3.0-X]]. | ||
| Originally this only returned 0xD8E007ED. Now with v11.3 this returns the memregion for the process: out low u32 = [[KProcess]] "Kernel flags from the exheader kernel descriptors" & 0xF00. High out u32 = 0. | | Originally this only returned 0xD8E007ED. Now with v11.3 this returns the memregion for the process: out low u32 = [[KProcess]] "Kernel flags from the exheader kernel descriptors" & 0xF00 (memory region flag). High out u32 = 0. | ||
|- | |- | ||
| 20 | | 20 | ||
Line 1,457: | Line 1,455: | ||
| 21 | | 21 | ||
| [[8.0.0-18]]. N3DS only. | | [[8.0.0-18]]. N3DS only. | ||
| Returns the | | Returns the VA -> PA conversion offset for the QTM static mem block reserved in the exheader (0x800000), otherwise 0 (+ error 0xE0E01BF4) if it doesn't exist | ||
|- | |- | ||
| 22 | | 22 | ||
| [[8.0.0-18]]. N3DS only. | | [[8.0.0-18]]. N3DS only. | ||
| Returns the | | Returns the base VA of the QTM static mem block reserved in the exheader, otherwise 0 (+ error 0xE0E01BF4) if it doesn't exist | ||
|- | |- | ||
| 23 | | 23 | ||
| [[8.0.0-18]]. N3DS only. | | [[8.0.0-18]]. N3DS only. | ||
| Returns the | | Returns the size of the QTM static mem block reserved in the exheader, otherwise 0 (+ error 0xE0E01BF4) if it doesn't exist | ||
|} | |} | ||