Changes

Jump to navigation Jump to search
126 bytes added ,  18:15, 6 November 2012
no edit summary
Line 287: Line 287:  
|-
 
|-
 
| 0x70
 
| 0x70
| (Handle KProcess, unsigned int Addr, unsigned int Unk, unsigned int Size, unsigned int Type, unsigned int Permissions)
+
| ControlProcessMemory(Handle KProcess, unsigned int Addr, unsigned int Unk, unsigned int Size, unsigned int Type, unsigned int Permissions)
 
|-
 
|-
 
| 0x71
 
| 0x71
Line 317: Line 317:  
|-
 
|-
 
| 0x7A
 
| 0x7A
| DisableExecuteNever(unsigned int Addr, unsigned int size) (Stubbed for regular kernel)
+
| DisableExecuteNever(unsigned int Addr, unsigned int Size) (Stubbed for regular kernel)
 
|-
 
|-
 
| 0x7C
 
| 0x7C
Line 331: Line 331:     
ControlMemory and MapMemoryBlock can be used to map memory pages, these two SVCs only support mapping execute-never R/W pages. The input permissions parameter for these SVCs must be <=3, where value zero is used when un-mapping memory. Bitmask 0xf00 for ControlMemory parameter MemoryType is the memory-type, when this is zero the memory-type is loaded from the kernel flags stored in the exheader ARM11 kernel descriptors, for the process using the SVC. The low 8-bits are the type: 1 is for un-mapping memory, 3 for mapping memory. Addr1 is not used for type1 and type3. Address 0x08000000 for ControlMemory is used for mapping the heap.
 
ControlMemory and MapMemoryBlock can be used to map memory pages, these two SVCs only support mapping execute-never R/W pages. The input permissions parameter for these SVCs must be <=3, where value zero is used when un-mapping memory. Bitmask 0xf00 for ControlMemory parameter MemoryType is the memory-type, when this is zero the memory-type is loaded from the kernel flags stored in the exheader ARM11 kernel descriptors, for the process using the SVC. The low 8-bits are the type: 1 is for un-mapping memory, 3 for mapping memory. Addr1 is not used for type1 and type3. Address 0x08000000 for ControlMemory is used for mapping the heap.
 +
 +
ControlProcessMemory maps memory in the specified process, where permissions is: bit0=R, bit1=W, bit2=X.
    
MapProcessMemory maps RW memory starting at address 0x00100000 in the specified KProcess, at the specified StartAddr in the current process. MapProcessMemory then maps 0x08000000 in the specified process, to StartAddr+0x7f00000 in the current process. UnmapProcessMemory unmaps the memory which was mapped by MapProcessMemory.
 
MapProcessMemory maps RW memory starting at address 0x00100000 in the specified KProcess, at the specified StartAddr in the current process. MapProcessMemory then maps 0x08000000 in the specified process, to StartAddr+0x7f00000 in the current process. UnmapProcessMemory unmaps the memory which was mapped by MapProcessMemory.
    
DebugActiveProcess is used to attach to a process for debugging. This SVC can only be used when the target process' ARM11 descriptors stored in the exheader have the kernel flag for "Enable debug" set. Otherwise when that flag is clear, the kernel flags for the process using this SVC must have the "Force debug" flag set.
 
DebugActiveProcess is used to attach to a process for debugging. This SVC can only be used when the target process' ARM11 descriptors stored in the exheader have the kernel flag for "Enable debug" set. Otherwise when that flag is clear, the kernel flags for the process using this SVC must have the "Force debug" flag set.

Navigation menu