From d9e2308c88be5c71262abd15dfe2c14630ff80d5 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Tue, 1 Dec 2015 18:59:16 -0500 Subject: [PATCH] Updated info/etc for ropgen_OSSwitchSecCodeGenMode so that it's more accurate. --- wiiu_browserhax_common.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wiiu_browserhax_common.php b/wiiu_browserhax_common.php index c202cd4..24c650a 100644 --- a/wiiu_browserhax_common.php +++ b/wiiu_browserhax_common.php @@ -42,7 +42,7 @@ $ROP_SETR3TOR31_POP_R31 r3=r31. Load LR from stackreg+20, load r31 from stackreg $ROP_memcpy Address of "memcpy" in coreinit. $ROP_DCFlushRange Address of "DCFlushRange" in coreinit. void DCFlushRange(const void *addr, size_t length); $ROP_ICInvalidateRange Address of "ICInvalidateRange" in coreinit. void ICInvalidateRange(const void *addr, size_t length); -$ROP_OSSwitchSecCodeGenMode Address of "OSSwitchSecCodeGenMode" in coreinit. OSSwitchSecCodeGenMode(bool execute) +$ROP_OSSwitchSecCodeGenMode Address of "OSSwitchSecCodeGenMode" in coreinit. OSSwitchSecCodeGenMode(bool flag) $ROP_OSCodegenCopy Address of "OSCodegenCopy" in coreinit. u32 OSCodegenCopy(dstaddr, srcaddr, size) $ROP_OSGetCodegenVirtAddrRange Address of "OSGetCodegenVirtAddrRange" in coreinit. void OSGetCodegenVirtAddrRange(u32 *out0, u32 *out1) $ROP_OSGetCoreId Address of "OSGetCoreId" in coreinit. @@ -256,11 +256,11 @@ function ropgen_OSGetCodegenVirtAddrRange($outaddr0, $outaddr1) ropgen_callfunc($ROP_OSGetCodegenVirtAddrRange, $outaddr0, $outaddr1, 0x0, 0x0, 0x0); } -function ropgen_OSSwitchSecCodeGenMode($execute) +function ropgen_OSSwitchSecCodeGenMode($flag)//flag0 == RW- permissions, flag1 == R-X permissions. { global $ROP_OSSwitchSecCodeGenMode; - ropgen_callfunc($ROP_OSSwitchSecCodeGenMode, $execute, 0x0, 0x0, 0x0, 0x0); + ropgen_callfunc($ROP_OSSwitchSecCodeGenMode, $flag, 0x0, 0x0, 0x0, 0x0); } function ropgen_memcpy($dst, $src, $size)