haxchi/dsrom/iosu_patcher/arm_kernel/source/mmu.s
FIX94 0ad99123db -use same iosu patcher for both haxchi and cbhc to allow haxchi to benefit from it
-added new config option to haxchi, "sysmenu" which will relaunch you into the system menu with signature, region patches and everything else that cbhc patches
-small logic correction in the iosu patcher
2016-12-19 04:14:47 +01:00

19 lines
288 B
ArmAsm

.section ".text"
.arm
.align 4
.globl disable_mmu
.type disable_mmu, %function
disable_mmu:
mrc p15, 0, r0, c1, c0, 0
ldr r1, =#0xFFFFEFFA
and r1, r0, r1
mcr p15, 0, r1, c1, c0, 0
bx lr
.globl restore_mmu
.type restore_mmu, %function
restore_mmu:
mcr p15, 0, r0, c1, c0, 0
bx lr