diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2021-07-25 13:23:02 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2021-07-25 13:23:02 -0400 |
commit | 5e0e326b75402a36c4d31502b8b5a05b862ac23c (patch) | |
tree | 1b5807c1efb72dbdd9d01f329cefb41171913a64 /arm9/lib/src/OS_protectionRegion.c | |
parent | 1f9d4503c898f9138422215132b53224571a281a (diff) | |
parent | 68d7aa47cc52ef822220e0e35890863d7cad479f (diff) |
Merge remote-tracking branch 'origin/master' into pikalax_work
Diffstat (limited to 'arm9/lib/src/OS_protectionRegion.c')
-rw-r--r-- | arm9/lib/src/OS_protectionRegion.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/arm9/lib/src/OS_protectionRegion.c b/arm9/lib/src/OS_protectionRegion.c deleted file mode 100644 index 4b8d8297..00000000 --- a/arm9/lib/src/OS_protectionRegion.c +++ /dev/null @@ -1,23 +0,0 @@ -#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 //Extended Access Permission Data Protection Region - bic r2, r2, r0 - orr r2, r2, r1 - 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 //Protection Unit Data Region 1 - bx lr -} - -ARM_FUNC asm void OS_SetProtectionRegion2(u32 param) -{ - mcr p15, 0x0, r0, c6, c2, 0x0 //Protection Unit Data Region 2 - bx lr -} |