Flush the source before copying to codegen.

This commit is contained in:
orboditilt 2019-01-08 15:59:06 +01:00
parent 7896f5733e
commit 0ec1c42452
1 changed files with 3 additions and 0 deletions

View File

@ -343,6 +343,9 @@ function ropgen_copycodebin_to_codegen($codegen_addr, $codebin_addr, $codebin_si
//ropgen_OSGetCodegenVirtAddrRange($ROPHEAP+0x200, $ROPHEAP+0x10+4);
//ropgen_callfunc(0x103769C, 0x0, 0x0, 0x0, 0x0, 0x0);//5.5.0 getcodegeninfo syscall
//ropgen_display_u32(0);
ropgen_DCFlushRange($codebin_addr, $codebin_size);
ropgen_ICInvalidateRange($codebin_addr, $codebin_size);
ropgen_OSSwitchSecCodeGenMode(0);
ropgen_memcpy($codegen_addr, $codebin_addr, $codebin_size);