Changes

126 bytes added ,  08:55, 7 February 2017
Line 1,481: Line 1,481:  
When input_flag is not 0x1, it will use value 0x0 internally. When a state field already matches input_flag, this will immediately return. Otherwise, after this SVC finishes running, it will write input_flag to this state field.
 
When input_flag is not 0x1, it will use value 0x0 internally. When a state field already matches input_flag, this will immediately return. Otherwise, after this SVC finishes running, it will write input_flag to this state field.
   −
This writes "<nowiki>0x100 | <value></nowiki>" to [[PDN_Registers|pdnregbase]]+0x140, where value depends on input_flag and a kernel state field for [[Configuration_Memory|APPMEMTYPE]].
+
This writes "<nowiki>0x100 | <val></nowiki>" to [[PDN_Registers|pdnregbase]]+0x140, where val depends on input_flag and a kernel state field for [[Configuration_Memory|APPMEMTYPE]].
 +
 
 +
When input_flag is 0x1 val is fixed:
 +
* Old3DS: 0x3
 +
* New3DS: 0x460
 +
 
 +
Otherwise, val depends on the kernel APPMEMTYPE state field.
    
= Kernel error-codes =
 
= Kernel error-codes =