summaryrefslogtreecommitdiff
path: root/arm9/lib/src
diff options
context:
space:
mode:
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