diff options
author | Revo <projectrevotpp@hotmail.com> | 2020-07-25 15:25:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-25 15:25:39 -0400 |
commit | 4f8385ac24e8904662af24bbc0d81317c8ff1ea6 (patch) | |
tree | a8645f1be7f8d3ca4af204f9c1fc0a31f633151d /arm9/lib/src/OS_protectionRegion.c | |
parent | 95d03abbfc10558d4a51f38d8131d47bbded6f8e (diff) | |
parent | c355575f3954a19dfed6c350a8ad34175263da46 (diff) |
Merge pull request #243 from red031000/master
venusaur, empoleon and OS_cache
Diffstat (limited to 'arm9/lib/src/OS_protectionRegion.c')
-rw-r--r-- | arm9/lib/src/OS_protectionRegion.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/arm9/lib/src/OS_protectionRegion.c b/arm9/lib/src/OS_protectionRegion.c index 4d6cf974..4b8d8297 100644 --- a/arm9/lib/src/OS_protectionRegion.c +++ b/arm9/lib/src/OS_protectionRegion.c @@ -1,27 +1,23 @@ -// -// Created by red031000 on 2020-04-24. -// - #include "function_target.h" #include "OS_protectionRegion.h" ARM_FUNC asm void OS_SetDPermissionsForProtectionRegion(register u32 setMask, register u32 flags) { - mrc p15, 0x0, r2, c5, c0, 0x2 + mrc p15, 0x0, r2, c5, c0, 0x2 //Extended Access Permission Data Protection Region bic r2, r2, r0 orr r2, r2, r1 - mcr p15, 0x0, r2, c5, c0, 0x2 + mcr p15, 0x0, r2, c5, c0, 0x2 //Extended Access Permission Data Protection Region bx lr } ARM_FUNC asm void OS_SetProtectionRegion1(u32 param) { - mcr p15, 0x0, r0, c6, c1, 0x0 + mcr p15, 0x0, r0, c6, c1, 0x0 //Protection Unit Data Region 1 bx lr } ARM_FUNC asm void OS_SetProtectionRegion2(u32 param) { - mcr p15, 0x0, r0, c6, c2, 0x0 + mcr p15, 0x0, r0, c6, c2, 0x0 //Protection Unit Data Region 2 bx lr } |