SVC: Difference between revisions
m fix type on SleepThread |
|||
(29 intermediate revisions by 6 users not shown) | |||
Line 95: | Line 95: | ||
| [3.0.0+] 0x2D || Result || [[#UnmapPhysicalMemory|UnmapPhysicalMemory]] || uintptr_t address, size_t size | | [3.0.0+] 0x2D || Result || [[#UnmapPhysicalMemory|UnmapPhysicalMemory]] || uintptr_t address, size_t size | ||
|- | |- | ||
| [5.0.0+] 0x2E || Result || [[#GetDebugFutureThreadInfo|GetDebugFutureThreadInfo]] || arch::LastThreadContext *out_context, uint64_t *thread_id, Handle debug_handle, int64_t ns | | [5.0.0-5.1.0] 0x2E || Result || GetFutureThreadInfo || arch::LastThreadContext *out_context, uintptr_t *out_tls_address, uint32_t *out_flags, int64_t ns | ||
|- | |||
| [6.0.0+] 0x2E || Result || [[#GetDebugFutureThreadInfo|GetDebugFutureThreadInfo]] || arch::LastThreadContext *out_context, uint64_t *thread_id, Handle debug_handle, int64_t ns | |||
|- | |- | ||
| 0x2F || Result || [[#GetLastThreadInfo|GetLastThreadInfo]] || arch::LastThreadContext *out_context, uintptr_t *out_tls_address, uint32_t *out_flags | | 0x2F || Result || [[#GetLastThreadInfo|GetLastThreadInfo]] || arch::LastThreadContext *out_context, uintptr_t *out_tls_address, uint32_t *out_flags | ||
Line 112: | Line 114: | ||
|- | |- | ||
| [8.0.0+] 0x36 || void || [[#SynchronizePreemptionState|SynchronizePreemptionState]] || | | [8.0.0+] 0x36 || void || [[#SynchronizePreemptionState|SynchronizePreemptionState]] || | ||
|- | |||
| [11.0.0+] 0x37 || Result || [[#GetResourceLimitPeakValue|GetResourceLimitPeakValue]] || int64_t *out_peak_value, Handle resource_limit_handle, LimitableResource which | |||
|- style="border-top: double" | |||
| [13.0.0+] 0x39 || Result || CreateIoPool || Handle *out_handle, IoPoolType which_pool | |||
|- | |||
| [13.0.0+] 0x3A || Result || CreateIoRegion || Handle *out_handle, Handle io_pool, PhysicalAddress physical_address, size_t size, MemoryMapping mapping, MemoryPermission perm | |||
|- style="border-top: double" | |- style="border-top: double" | ||
| [1.0.0-3.0.2] 0x3C || void || [[#DumpInfo|DumpInfo]] || DumpInfoType dump_info_type, uint64_t arg | | [1.0.0-3.0.2] 0x3C || void || [[#DumpInfo|DumpInfo]] || DumpInfoType dump_info_type, uint64_t arg | ||
Line 130: | Line 138: | ||
|- | |- | ||
| 0x45 || Result || [[#CreateEvent|CreateEvent]] || Handle *out_write_handle, Handle *out_read_handle | | 0x45 || Result || [[#CreateEvent|CreateEvent]] || Handle *out_write_handle, Handle *out_read_handle | ||
|- | |- | ||
| [13.0.0+] 0x46 || Result || MapIoRegion || Handle io_region, uintptr_t address, size_t size, MemoryPermission perm | |||
|- | |||
| [13.0.0+] 0x47 || Result || UnmapIoRegion || Handle io_region, uintptr_t address, size_t size | |||
|- | |||
| [5.0.0+] 0x48 || Result || [[#MapPhysicalMemoryUnsafe|MapPhysicalMemoryUnsafe]] || uintptr_t address, size_t size | | [5.0.0+] 0x48 || Result || [[#MapPhysicalMemoryUnsafe|MapPhysicalMemoryUnsafe]] || uintptr_t address, size_t size | ||
|- | |- | ||
Line 157: | Line 169: | ||
| 0x54 || Result || [[#QueryPhysicalAddress|QueryPhysicalAddress]] || arch::PhysicalMemoryInfo *out_info, uintptr_t address | | 0x54 || Result || [[#QueryPhysicalAddress|QueryPhysicalAddress]] || arch::PhysicalMemoryInfo *out_info, uintptr_t address | ||
|- | |- | ||
| 0x55 || Result || [[#QueryIoMapping|QueryIoMapping]] || uintptr_t *out_address, PhysicalAddress physical_address, size_t size | | [1.0.0-9.2.0] 0x55 || Result || [[#QueryIoMapping|QueryIoMapping]] || uintptr_t *out_address, PhysicalAddress physical_address, size_t size | ||
|- | |||
| [10.0.0+] 0x55 || Result || QueryMemoryMapping || uintptr_t *out_address, size_t *out_size, PhysicalAddress physical_address, size_t size | |||
|- | |- | ||
| 0x56 || Result || [[#CreateDeviceAddressSpace|CreateDeviceAddressSpace]] || Handle *out_handle, uint64_t das_address, uint64_t das_size | | 0x56 || Result || [[#CreateDeviceAddressSpace|CreateDeviceAddressSpace]] || Handle *out_handle, uint64_t das_address, uint64_t das_size | ||
Line 165: | Line 179: | ||
| 0x58 || Result || [[#DetachDeviceAddressSpace|DetachDeviceAddressSpace]] || DeviceName device_name, Handle das_handle | | 0x58 || Result || [[#DetachDeviceAddressSpace|DetachDeviceAddressSpace]] || DeviceName device_name, Handle das_handle | ||
|- | |- | ||
| 0x59 || Result || [[#MapDeviceAddressSpaceByForce|MapDeviceAddressSpaceByForce]] || Handle das_handle, Handle process_handle, uint64_t process_address, size_t size, uint64_t device_address, | | 0x59 || Result || [[#MapDeviceAddressSpaceByForce|MapDeviceAddressSpaceByForce]] || Handle das_handle, Handle process_handle, uint64_t process_address, size_t size, uint64_t device_address, uint32_t option | ||
|- | |- | ||
| 0x5A || Result || [[#MapDeviceAddressSpaceAligned|MapDeviceAddressSpaceAligned]] || Handle das_handle, Handle process_handle, uint64_t process_address, size_t size, uint64_t device_address, | | 0x5A || Result || [[#MapDeviceAddressSpaceAligned|MapDeviceAddressSpaceAligned]] || Handle das_handle, Handle process_handle, uint64_t process_address, size_t size, uint64_t device_address, uint32_t option | ||
|- | |- | ||
| 0x5B || Result || [[#MapDeviceAddressSpace|MapDeviceAddressSpace]] || size_t *out_mapped_size, Handle das_handle, Handle process_handle, uint64_t process_address, size_t size, uint64_t device_address, MemoryPermission device_perm | | [1.0.0-12.1.0] 0x5B || Result || [[#MapDeviceAddressSpace|MapDeviceAddressSpace]] || size_t *out_mapped_size, Handle das_handle, Handle process_handle, uint64_t process_address, size_t size, uint64_t device_address, MemoryPermission device_perm | ||
|- | |- | ||
| 0x5C || Result || [[#UnmapDeviceAddressSpace|UnmapDeviceAddressSpace]] || Handle das_handle, Handle process_handle, uint64_t process_address, size_t size, uint64_t device_address | | 0x5C || Result || [[#UnmapDeviceAddressSpace|UnmapDeviceAddressSpace]] || Handle das_handle, Handle process_handle, uint64_t process_address, size_t size, uint64_t device_address | ||
Line 240: | Line 254: | ||
|- | |- | ||
| 0x7F || void || [[#CallSecureMonitor|CallSecureMonitor]] || SecureMonitorArguments *args | | 0x7F || void || [[#CallSecureMonitor|CallSecureMonitor]] || SecureMonitorArguments *args | ||
|- | |||
| [S2] 0x80 || Result || SetMemoryAttribute2? || uintptr_t address, size_t size, uint32_t mask, uint32_t attr | |||
|- style="border-top: double" | |||
| [15.0.0+] 0x90 || Result || MapInsecurePhysicalMemory || uintptr_t address, size_t size | |||
|- | |||
| [15.0.0+] 0x91 || Result || UnmapInsecurePhysicalMemory || uintptr_t address, size_t size | |||
|- | |- | ||
|} | |} | ||
Line 249: | Line 269: | ||
! Argument || Type || Name | ! Argument || Type || Name | ||
|- | |- | ||
| (In) | | (In) X1 || uint64_t || Size | ||
|- | |- | ||
| (Out) W0 || [[#Result]] || Result | | (Out) W0 || [[#Result]] || Result | ||
Line 313: | Line 333: | ||
'''0xD801:''' Invalid permission specified. Valid permissions are ---, r-- and rw-. | '''0xD801:''' Invalid permission specified. Valid permissions are ---, r-- and rw-. | ||
'''0xD401:''' The provided memory region was in an invalid state. The region must have the | '''0xD401:''' The provided memory region was in an invalid state. The region must have the [[#MemoryState|FlagCanReprotect]] state, and must not have the [[#MemoryAttribute|Locked]] or [[#MemoryAttribute|Uncached]] attributes. | ||
'''0xCE01:''' Kernel resource exhausted. | '''0xCE01:''' Kernel resource exhausted. | ||
Line 489: | Line 509: | ||
! Argument64 || Argument32 || Type || Name | ! Argument64 || Argument32 || Type || Name | ||
|- | |- | ||
| (In) X0 || R0, R1 || | | (In) X0 || R0, R1 || int64_t || Nanoseconds | ||
|} | |} | ||
</div> | </div> | ||
Line 631: | Line 651: | ||
</div> | </div> | ||
Takes the given event out of the signaled state. | Takes the given event out of the signaled state, if it is signaled. | ||
=== Result codes === | === Result codes === | ||
Line 637: | Line 657: | ||
'''0xE401:''' Invalid handle. The handle either does not exist, or is not a ReadableEvent nor a WritableEvent. | '''0xE401:''' Invalid handle. The handle either does not exist, or is not a ReadableEvent nor a WritableEvent. | ||
== MapSharedMemory == | == MapSharedMemory == | ||
Line 726: | Line 744: | ||
</div> | </div> | ||
Resets the signal on the given handle, ensuring future calls to [[#WaitSynchronization]] on this handle will sleep until the handle is signaled again. If the handle is a ReadableEvent, this is | Resets the signal on the given handle, ensuring future calls to [[#WaitSynchronization]] on this handle will sleep until the handle is signaled again. If the handle is a ReadableEvent, this returns ResultInvalidState if the event is not signaled. | ||
If the handle is a Process, it will clear the signaled state (which is set when the process changes [[#ProcessState]]. Once the process enters the Exited state, calling ResetSignal on the process will no longer have an effect (the process is permanently signaled), and the syscall will return 0xFA01. | If the handle is a Process, it will clear the signaled state (which is set when the process changes [[#ProcessState]]. Once the process enters the Exited state, calling ResetSignal on the process will no longer have an effect (the process is permanently signaled), and the syscall will return 0xFA01. | ||
Line 1,111: | Line 1,129: | ||
Uses current process pool partition. | Uses current process pool partition. | ||
=== Result codes === | |||
'''0x0:''' Success. | |||
'''0xCA01:''' Invalid size passed. It's either zero or not 4k-aligned | |||
'''0xCC01:''' Invalid address. (not 4k-aligned) | |||
'''0xDC01:''' Invalid memory range. It's either causes overflow, or does not fall into "reserved" address range (aka Alias). See AliasRegionAddress at [[#InfoType]] | |||
'''0xFA01:''' Invalid state. (not enough SystemResource (see [[NPDM#SystemResourceSize]])) | |||
== UnmapPhysicalMemory == | == UnmapPhysicalMemory == | ||
Line 1,248: | Line 1,277: | ||
| (In) X3 || R3, R4 || uint64_t || Timeout | | (In) X3 || R3, R4 || uint64_t || Timeout | ||
|- | |- | ||
| (Out) | | (Out) W0 || R0 || [[#Result]] || Result | ||
|} | |} | ||
</div> | </div> | ||
Line 1,266: | Line 1,295: | ||
| (In) W3 || R3 || uint32_t || NumToSignal | | (In) W3 || R3 || uint32_t || NumToSignal | ||
|- | |- | ||
| (Out) | | (Out) W0 || R0 || [[#Result]] || Result | ||
|} | |} | ||
</div> | </div> | ||
Line 1,279: | Line 1,308: | ||
|- | |- | ||
| (Out) None || || | | (Out) None || || | ||
|} | |||
</div> | |||
== GetResourceLimitPeakValue == | |||
<div style="display: inline-block;"> | |||
{| class="wikitable" border="1" | |||
|- | |||
! Argument64 || Argument32 || Type || Name | |||
|- | |||
| (In) W1 || R1 || Handle<ResourceLimit> || ResourceLimitHandle | |||
|- | |||
| (In) W2 || R2 || [[#LimitableResource]] || LimitableResource | |||
|- | |||
| (Out) W0 || R0 || [[#Result]] || Result | |||
|- | |||
| (Out) X1 || R1, R2 || int64_t || PeakValue | |||
|} | |} | ||
</div> | </div> | ||
Line 1,387: | Line 1,432: | ||
! Argument64 || Argument32 || Type || Name | ! Argument64 || Argument32 || Type || Name | ||
|- | |- | ||
| (In) | | (In) X1 || R1 || Handle<Port>* or Handle<ServerSession>* || Handles | ||
|- | |- | ||
| (In) W2 || R2 || uint32_t || NumHandles | | (In) W2 || R2 || uint32_t || NumHandles | ||
Line 1,659: | Line 1,704: | ||
|} | |} | ||
</div> | </div> | ||
You must pass same size and permissions as given in [[#CreateTransferMemory]], otherwise error. | You must pass same size and permissions as given in [[#CreateTransferMemory]], otherwise error. | ||
Line 1,821: | Line 1,864: | ||
| (In) X4 || R5, R6 || uint64_t || DeviceAddressSpaceAddress | | (In) X4 || R5, R6 || uint64_t || DeviceAddressSpaceAddress | ||
|- | |- | ||
| (In) W5 || R7 || | | (In) W5 || R7 || uint32_t || Option | ||
|- | |- | ||
| (Out) W0 || R0 || [[#Result]] || Result | | (Out) W0 || R0 || [[#Result]] || Result | ||
Line 1,831: | Line 1,874: | ||
Address is the userspace destination address, while DeviceAddressSpaceAddress is the source address between DeviceAddressSpaceStartAddress and DeviceAddressSpaceEndAddress (passed to [[#CreateDeviceAddressSpace]]). | Address is the userspace destination address, while DeviceAddressSpaceAddress is the source address between DeviceAddressSpaceStartAddress and DeviceAddressSpaceEndAddress (passed to [[#CreateDeviceAddressSpace]]). | ||
The userspace destination address must have the [[SVC#MemoryState| | The userspace destination address must have the [[SVC#MemoryState|FlagCanDeviceMap]] bit set. Bit [[SVC#MemoryAttribute|DeviceShared]] will be set after mapping. | ||
The Option encodes a [[#MemoryPermission]] in the low 16 bits, and an indicator of IO mapping in the high bits. | |||
== MapDeviceAddressSpaceAligned == | == MapDeviceAddressSpaceAligned == | ||
Line 1,849: | Line 1,894: | ||
| (In) X4 || R5, R6 || uint64_t || DeviceAddressSpaceAddress | | (In) X4 || R5, R6 || uint64_t || DeviceAddressSpaceAddress | ||
|- | |- | ||
| (In) W5 || R7 || | | (In) W5 || R7 || uint32_t || Option | ||
|- | |- | ||
| (Out) W0 || R0 || [[#Result]] || Result | | (Out) W0 || R0 || [[#Result]] || Result | ||
Line 1,857: | Line 1,902: | ||
Maps an attached device address space to an userspace address. | Maps an attached device address space to an userspace address. | ||
Same as [[#MapDeviceAddressSpaceByForce]], but the userspace destination address must have the [[SVC#MemoryState| | Same as [[#MapDeviceAddressSpaceByForce]], but the userspace destination address must have the [[SVC#MemoryState|FlagCanAlignedDeviceMap]] bit set instead. | ||
The Option encodes a [[#MemoryPermission]] in the low 16 bits, and an indicator of IO mapping in the high bits. | |||
== MapDeviceAddressSpace == | == MapDeviceAddressSpace == | ||
Line 2,562: | Line 2,609: | ||
! Handle type || InfoType || InfoSubType || Description | ! Handle type || InfoType || InfoSubType || Description | ||
|- | |- | ||
| Process || 0 || 0 || | | Process || 0 || 0 || CoreMask | ||
|- | |- | ||
| Process || 1 || 0 || | | Process || 1 || 0 || PriorityMask | ||
|- | |- | ||
| Process || 2 || 0 || | | Process || 2 || 0 || AliasRegionAddress | ||
|- | |- | ||
| Process || 3 || 0 || AliasRegionSize | | Process || 3 || 0 || AliasRegionSize | ||
|- | |- | ||
| Process || 4 || 0 || | | Process || 4 || 0 || HeapRegionAddress | ||
|- | |- | ||
| Process || 5 || 0 || HeapRegionSize | | Process || 5 || 0 || HeapRegionSize | ||
|- | |- | ||
| Process || 6 || 0 || | | Process || 6 || 0 || TotalMemorySize. Total memory available(free+used). | ||
|- | |- | ||
| Process || 7 || 0 || | | Process || 7 || 0 || UsedMemorySize. Total used size of codebin memory + main-thread stack + allocated heap. | ||
|- | |- | ||
| Zero || 8 || 0 || | | Zero || 8 || 0 || DebuggerAttached | ||
|- | |- | ||
| Zero || 9 || 0 || | | Zero || 9 || 0 || ResourceLimit | ||
|- | |- | ||
| Zero || 10 || -1, {current coreid} || IdleTickCount | | Zero || 10 || -1, {current coreid} || IdleTickCount | ||
|- | |- | ||
| Zero || 11 || 0-3 || RandomEntropy | | Zero || 11 || 0-3 || RandomEntropy. Used to seed usermode PRNGs. | ||
|- | |- | ||
| Process || 12 || 0 || [2.0.0+] | | Process || 12 || 0 || [2.0.0+] AslrRegionAddress | ||
|- | |- | ||
| Process || 13 || 0 || [2.0.0+] | | Process || 13 || 0 || [2.0.0+] AslrRegionSize | ||
|- | |- | ||
| Process || 14 || 0 || [2.0.0+] | | Process || 14 || 0 || [2.0.0+] StackRegionAddress | ||
|- | |- | ||
| Process || 15 || 0 || [2.0.0+] StackRegionSize | | Process || 15 || 0 || [2.0.0+] StackRegionSize | ||
|- | |- | ||
| Process || 16 || 0 || [3.0.0+] | | Process || 16 || 0 || [3.0.0+] SystemResourceSizeTotal | ||
|- | |- | ||
| Process || 17 || 0 || [3.0.0+] | | Process || 17 || 0 || [3.0.0+] SystemResourceSizeUsed | ||
|- | |- | ||
| Process || 18 || 0 || [3.0.0+] ProgramId | | Process || 18 || 0 || [3.0.0+] ProgramId | ||
|- | |- | ||
| Zero || 19 || 0 || [4.0.0-4.1.0] | | Zero || 19 || 0 || [4.0.0-4.1.0] InitialProcessIdRange_LowerBound | ||
|- | |- | ||
| Zero || 19 || 1 || [4.0.0-4.1.0] | | Zero || 19 || 1 || [4.0.0-4.1.0] InitialProcessIdRange_UpperBound | ||
|- | |- | ||
| Process || 20 || 0 || [5.0.0+] | | Process || 20 || 0 || [5.0.0+] UserExceptionContextAddress | ||
|- | |- | ||
| Process || 21 || 0 || [6.0.0+] | | Process || 21 || 0 || [6.0.0+] TotalNonSystemMemorySize | ||
|- | |- | ||
| Process || 22 || 0 || [6.0.0+] | | Process || 22 || 0 || [6.0.0+] UsedNonSystemMemorySize | ||
|- | |- | ||
| Process || 23 || 0 || [9.0.0+] IsApplication | | Process || 23 || 0 || [9.0.0+] IsApplication | ||
|- | |- | ||
| Thread || 0xF0000002 || 0-3, -1 || | | Process || 24 || 0 || [11.0.0+] FreeThreadCount | ||
|- | |||
| Thread || 25 ([1.0.0-12.1.0] 0xF0000002) || 0-3, -1 || ThreadTickCount. When 0-3 are passed, gets specific core CPU ticks spent on thread. When -1 is passed, gets total CPU ticks spent on thread. | |||
|- | |||
| Process || 26 || 0 || [14.0.0+] IsSvcPermitted | |||
|- | |||
| Process || 27 || 0 || [16.0.0+] IoRegionHint | |||
|- | |||
| Process || 28 || 0 || [18.0.0+] AliasRegionExtraSize | |||
|- | |||
| Process || 29 || 0 || [S2] Returns 0 in compatibility processes. | |||
|- | |||
| Process || 30 || 0 || [S2] Returns 0 in compatibility processes. | |||
|- | |||
| Process || 31 || 0 || [S2] | |||
|- | |||
| Process || 32 || 0 || [S2] | |||
|- | |||
| Process || 33 || 0 || [S2] ProcessPageSize | |||
|- | |||
| TransferMemory || 34 || 0 || [19.0.0+] TransferMemoryHint | |||
|} | |} | ||
== SystemInfoType == | == SystemInfoType == | ||
{| class=wikitable | {| class=wikitable | ||
! Handle type || SystemInfoType || SystemInfoSubType|| Description | ! Handle type || SystemInfoType || SystemInfoSubType || Description | ||
|- | |- | ||
| Zero || 0 || 0 || | | Zero || 0 || 0 || TotalPhysicalMemorySize_Application | ||
|- | |- | ||
| Zero || 0 || 1 || | | Zero || 0 || 1 || TotalPhysicalMemorySize_Applet | ||
|- | |- | ||
| Zero || 0 || 2 || | | Zero || 0 || 2 || TotalPhysicalMemorySize_System | ||
|- | |- | ||
| Zero || 0 || 3 || | | Zero || 0 || 3 || TotalPhysicalMemorySize_SystemUnsafe | ||
|- | |- | ||
| Zero || 1 || 0 || | | Zero || 1 || 0 || UsedPhysicalMemorySize_Application | ||
|- | |- | ||
| Zero || 1 || 1 || | | Zero || 1 || 1 || UsedPhysicalMemorySize_Applet | ||
|- | |- | ||
| Zero || 1 || 2 || | | Zero || 1 || 2 || UsedPhysicalMemorySize_System | ||
|- | |- | ||
| Zero || 1 || 3 || | | Zero || 1 || 3 || UsedPhysicalMemorySize_SystemUnsafe | ||
|- | |- | ||
| Zero || 2 || 0 || | | Zero || 2 || 0 || InitialProcessIdRange_LowerBound | ||
|- | |- | ||
| Zero || 2 || 1 || | | Zero || 2 || 1 || InitialProcessIdRange_UpperBound | ||
|} | |} | ||
Line 2,931: | Line 2,998: | ||
|- | |- | ||
| 2 || Execute || Can be set by [[#SetProcessMemoryPermission]] and [[#ControlCodeMemory]]. | | 2 || Execute || Can be set by [[#SetProcessMemoryPermission]] and [[#ControlCodeMemory]]. | ||
|- | |||
| 28 || DontCare || | |||
|} | |} | ||
Line 2,944: | Line 3,013: | ||
|- | |- | ||
| 3 || Uncached || | | 3 || Uncached || | ||
|- | |||
| 4 || PermissionLocked || | |||
|- | |||
| 5-6 || [S2] ? || GPU/IOMMU related? | |||
|- | |||
|} | |} | ||
Line 2,952: | Line 3,026: | ||
| 7-0 || [[#MemoryType]] || | | 7-0 || [[#MemoryType]] || | ||
|- | |- | ||
| 8 || [[#SetMemoryPermission| | | 8 || [[#SetMemoryPermission|FlagCanReprotect]] || | ||
|- | |- | ||
| 9 || | | 9 || FlagCanDebug || Allows using [[#WriteDebugProcessMemory]] on segments mapped read-only. | ||
|- | |- | ||
| 10 || | | 10 || FlagCanUseIpc || Allows sending this region as an IPC A/B/W buffer with flags=0. | ||
|- | |- | ||
| 11 || | | 11 || FlagCanUseNonDeviceIpc || Allows sending this region as an IPC A/B/W buffer with flags=1. | ||
|- | |- | ||
| 12 || | | 12 || FlagCanUseNonSecureIpc || Allows sending this region as an IPC A/B/W buffer with flags=3. | ||
|- | |- | ||
| | | 13 || FlagMapped || | ||
|- | |- | ||
| | | 14 || [[#SetProcessMemoryPermission|FlagCode]] || | ||
|- | |- | ||
| | | 15 || [[#MapMemory|FlagCanAlias]] || | ||
|- | |- | ||
| | | 16 || [[#MapProcessCodeMemory|FlagCanCodeAlias]] || | ||
|- | |- | ||
| | | 17 || [[#CreateTransferMemory|FlagCanTransfer]] || | ||
|- | |- | ||
| | | 18 || [[#QueryPhysicalAddress|FlagCanQueryPhysical]] || | ||
|- | |- | ||
| | | 19 || [[#MapDeviceAddressSpace|FlagCanDeviceMap]] || | ||
|- | |- | ||
| | | 20 || [[#MapDeviceAddressSpaceAligned|FlagCanAlignedDeviceMap]] || | ||
|- | |- | ||
| | | 21 || [[#SendSyncRequestWithUserBuffer|FlagCanIpcUserBuffer]] || | ||
|- | |- | ||
| | | 22 || FlagReferenceCounted || The physical memory blocks backing this region are refcounted. | ||
|- | |- | ||
| | | 23 || [[#MapProcessMemory|FlagCanMapProcess]] || | ||
|- | |- | ||
| 25 || [4.0.0+] [[#CreateCodeMemory| | | 24 || [[#SetMemoryAttribute|FlagCanChangeAttribute]] || | ||
|- | |||
| 25 || [4.0.0+] [[#CreateCodeMemory|FlagCanCodeMemory]] || | |||
|- | |||
| 26 || [15.0.0+] FlagLinearMapped || | |||
|} | |} | ||
Line 3,054: | Line 3,132: | ||
|- | |- | ||
| 0x00402015 || [4.0.0+] CodeOut || Mapped in kernel during [[#ControlCodeMemory]]. | | 0x00402015 || [4.0.0+] CodeOut || Mapped in kernel during [[#ControlCodeMemory]]. | ||
|- | |||
| 0x00002016 || [13.0.0+] Coverage || | |||
|- | |||
| 0x05583817 || [15.0.0+] Insecure || | |||
|} | |} | ||
Line 3,095: | Line 3,177: | ||
! Bit || Bitmask || Description | ! Bit || Bitmask || Description | ||
|- | |- | ||
| 0 || 1 || | | 0 || 1 || HandleException (note: doesn't need to be set in the same call than Resume) | ||
|- | |- | ||
| 1 || 2 || | | 1 || 2 || EnableExceptionEvent | ||
|- | |- | ||
| 2 || 4 || | | 2 || 4 || ContinueAll | ||
|- | |- | ||
| 3 || 8 || | | 3 || 8 || ContinueOthers | ||
|} | |} | ||
ContinueOthers is like ContinueAll but acts on all threads that aren't in the input list. The affected threads are resumed. | |||
Only one of of | Only one of of HandleException and EnableExceptionEvent can be set at a time. | ||
If the input number of threads is 0, this means "all threads". | If the input number of threads is 0, this means "all threads". |