Changes

Jump to navigation Jump to search
206 bytes added ,  17:24, 26 October 2020
Line 49: Line 49:  
== GenerateCode ==
 
== GenerateCode ==
 
Takes an u32, an u64, a [[#CodeRange]], a [[#CodeRange]], a [[#Struct32]], a type-0x5 input buffer, a type-0x6 output buffer, and returns an output s32, a [[#CodeRange]], a [[#CodeRange]].
 
Takes an u32, an u64, a [[#CodeRange]], a [[#CodeRange]], a [[#Struct32]], a type-0x5 input buffer, a type-0x6 output buffer, and returns an output s32, a [[#CodeRange]], a [[#CodeRange]].
 +
 +
sdknso copies data from an user-buffer to the tmp [[#Struct32]] which is used with the cmd, the size of that user-buffer is passed as the cmd input u32.
    
An error is thrown if the funcptr in state for the "nnjitpluginGenerateCode" symbol is not set.
 
An error is thrown if the funcptr in state for the "nnjitpluginGenerateCode" symbol is not set.
Line 67: Line 69:  
* in_CodeRange.size must be >= out_CodeRange.size.
 
* in_CodeRange.size must be >= out_CodeRange.size.
 
* (out_CodeRange.offset-in_CodeRange.offset) must be <= (in_CodeRange.size-out_CodeRange.size).
 
* (out_CodeRange.offset-in_CodeRange.offset) must be <= (in_CodeRange.size-out_CodeRange.size).
 +
 +
After using the cmd, sdknso runs cache operations.
    
== Control ==
 
== Control ==

Navigation menu