summaryrefslogtreecommitdiff
path: root/arm9/lib/src
diff options
context:
space:
mode:
authorred031000 <rubenru09@aol.com>2020-05-01 18:31:26 +0100
committerred031000 <rubenru09@aol.com>2020-05-01 18:31:26 +0100
commitfa332326543d03fe6afdc0dcd04f0a666450955b (patch)
tree85e8314866f65fb95e62a66b029ab5eeca55e994 /arm9/lib/src
parentcfbc21f1c80061a2d211dc5da2e0d0eb0d532c5c (diff)
ARM_FUNC
Diffstat (limited to 'arm9/lib/src')
-rw-r--r--arm9/lib/src/OS_protectionRegion.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arm9/lib/src/OS_protectionRegion.c b/arm9/lib/src/OS_protectionRegion.c
index 230f8403..4d6cf974 100644
--- a/arm9/lib/src/OS_protectionRegion.c
+++ b/arm9/lib/src/OS_protectionRegion.c
@@ -2,9 +2,10 @@
// Created by red031000 on 2020-04-24.
//
+#include "function_target.h"
#include "OS_protectionRegion.h"
-asm void OS_SetDPermissionsForProtectionRegion(register u32 setMask, register u32 flags)
+ARM_FUNC asm void OS_SetDPermissionsForProtectionRegion(register u32 setMask, register u32 flags)
{
mrc p15, 0x0, r2, c5, c0, 0x2
bic r2, r2, r0
@@ -13,13 +14,13 @@ asm void OS_SetDPermissionsForProtectionRegion(register u32 setMask, register u3
bx lr
}
-asm void OS_SetProtectionRegion1(u32 param)
+ARM_FUNC asm void OS_SetProtectionRegion1(u32 param)
{
mcr p15, 0x0, r0, c6, c1, 0x0
bx lr
}
-asm void OS_SetProtectionRegion2(u32 param)
+ARM_FUNC asm void OS_SetProtectionRegion2(u32 param)
{
mcr p15, 0x0, r0, c6, c2, 0x0
bx lr