SVC: Difference between revisions
fix refs |
more refs |
||
Line 133: | Line 133: | ||
| 0x4A || [5.0.0+] svcSetUserHeapMemoryAllocationMax || X0=size || W0=result | | 0x4A || [5.0.0+] svcSetUserHeapMemoryAllocationMax || X0=size || W0=result | ||
|- | |- | ||
| 0x4B || [4.0.0+] [[#svcCreateCodeMemory]] || X1=addr, X2=size || W0=result, W1= | | 0x4B || [4.0.0+] [[#svcCreateCodeMemory]] || X1=addr, X2=size || W0=result, W1=code_memory_handle | ||
|- | |- | ||
| 0x4C || [4.0.0+] [[#svcControlCodeMemory]] || W0= | | 0x4C || [4.0.0+] [[#svcControlCodeMemory]] || W0=code_memory_handle, W1=[[#CodeMemoryOperation]], X2=dstaddr, X3=size, W4=perm || W0=result | ||
|- | |- | ||
| 0x4D || svcSleepSystem || None || None | | 0x4D || svcSleepSystem || None || None | ||
Line 861: | Line 861: | ||
== svcAllocateUserHeapMemory == | == svcAllocateUserHeapMemory == | ||
Same as [[# | Same as [[#svcMapPhysicalMemory]] except it always uses pool partition 0. | ||
== svcCreateCodeMemory == | == svcCreateCodeMemory == | ||
Takes an address range with backing memory to create the | Takes an address range with backing memory to create the code memory object. | ||
The memory is initially memset to 0xFF after being locked. | The memory is initially memset to 0xFF after being locked. | ||
Line 877: | Line 877: | ||
Operations [[#CodeMemoryOperation|CodeMemoryOperation_UnmapOwner/CodeMemoryOperation_UnmapSlave]] unmap memory that was previously mapped this way. | Operations [[#CodeMemoryOperation|CodeMemoryOperation_UnmapOwner/CodeMemoryOperation_UnmapSlave]] unmap memory that was previously mapped this way. | ||
This allows one "secure JIT" process to map the memory as RW-, and the other "slave" process to map it R-X. | This allows one "secure JIT" process to map the code memory as RW-, and the other "slave" process to map it R-X. | ||
== svcReadWriteRegister == | == svcReadWriteRegister == | ||
Line 1,631: | Line 1,631: | ||
| 24 || [[#svcSetMemoryAttribute|AttributeChangeAllowed]] | | 24 || [[#svcSetMemoryAttribute|AttributeChangeAllowed]] | ||
|- | |- | ||
| 25 || [4.0.0+] | | 25 || [4.0.0+] CodeMemoryAllowed | ||
|} | |} | ||