BOOL OSCodegenCopy(void *dst, void *src, size_t size)
Copies data from normal memory into the codegen area, leaving the area in CODEGEN_R_X mode.
uint32_t OSGetSecCodeGenMode()
BOOL OSSwitchSecCodeGenMode(OSCodegenSecMode mode)
Switches the permissions on the codegen memory area.
OSCodegenSecMode
The memory permissions for the codegen area.
void OSGetCodegenVirtAddrRange(void **outVirtualAddress, uint32_t *outSize)
Gets the location and size of codegen memory, if available.
uint32_t OSGetCodegenCore()
Gets the CPU core that's allowed to use codegen.
uint32_t OSGetCodegenMode()
@ CODEGEN_RW_
The area can be read or written to, but not executed.
@ CODEGEN_R_X
The area can be read or executed, but not written to.