Difference between revisions of "RO:LoadCRR"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00020082] |- | 1 | CRR buffer pointer |- | 2 | CRR size |- | 3 | Must b...")
 
Line 35: Line 35:
  
 
=Description=
 
=Description=
This loads a [[CRR0|CRR]] for the RO module, only one CRR can be loaded at a time.
+
This loads a [[CRR0|CRR]] for the RO module, only one CRR can be loaded at a time. Before RO verifies the input CRR, RO uses [[SVC|ControlProcessMemory]] to set the memory permissions of the input buffer in the process to R--. If verification of the CRR fails, the permissions are set to RW-.

Revision as of 22:28, 6 November 2012

Request

Index Word Description
0 Header code [0x00020082]
1 CRR buffer pointer
2 CRR size
3 Must be zero
4 KProcess handle

Response

Index Word Description
0 Header code
1 Result code

Description

This loads a CRR for the RO module, only one CRR can be loaded at a time. Before RO verifies the input CRR, RO uses ControlProcessMemory to set the memory permissions of the input buffer in the process to R--. If verification of the CRR fails, the permissions are set to RW-.