From c355575f3954a19dfed6c350a8ad34175263da46 Mon Sep 17 00:00:00 2001 From: red031000 Date: Fri, 24 Jul 2020 22:52:51 +0100 Subject: annotate MCR and MRC --- arm9/lib/src/OS_protectionUnit.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'arm9/lib/src/OS_protectionUnit.c') diff --git a/arm9/lib/src/OS_protectionUnit.c b/arm9/lib/src/OS_protectionUnit.c index 6d3b7952..66811a1e 100644 --- a/arm9/lib/src/OS_protectionUnit.c +++ b/arm9/lib/src/OS_protectionUnit.c @@ -1,22 +1,18 @@ -// -// Created by red031000 on 2020-05-24. -// - #include "function_target.h" #include "OS_protectionUnit.h" ARM_FUNC asm void OS_EnableProtectionUnit(void) { - mrc p15, 0x0, r0, c1, c0, 0x0 + mrc p15, 0x0, r0, c1, c0, 0x0 //Control Register orr r0, r0, #0x1 - mcr p15, 0x0, r0, c1, c0, 0x0 + mcr p15, 0x0, r0, c1, c0, 0x0 //Control Register bx lr } ARM_FUNC asm void OS_DisableProtectionUnit(void) { - mrc p15, 0x0, r0, c1, c0, 0x0 + mrc p15, 0x0, r0, c1, c0, 0x0 //Control Register bic r0, r0, #0x1 - mcr p15, 0x0, r0, c1, c0, 0x0 + mcr p15, 0x0, r0, c1, c0, 0x0 //Control Register bx lr } -- cgit v1.2.3