summaryrefslogtreecommitdiff
path: root/arm9/lib/include/OS_protectionRegion.h
diff options
context:
space:
mode:
authorRevo <projectrevotpp@hotmail.com>2021-01-08 19:33:39 -0500
committerGitHub <noreply@github.com>2021-01-08 19:33:39 -0500
commit3289261e5aaddcd67f72513de06a72a379854d5c (patch)
tree3af221138ff7d6e8ad56a4b95a6255a0edc3812b /arm9/lib/include/OS_protectionRegion.h
parentee1f12ce06e865f47511ba200029e0afaafa4255 (diff)
parent1e268426533b6bb78b86e35577c72cd4bb5cbb4c (diff)
Merge pull request #312 from red031000/master
decompile CTRDG_common
Diffstat (limited to 'arm9/lib/include/OS_protectionRegion.h')
-rw-r--r--arm9/lib/include/OS_protectionRegion.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arm9/lib/include/OS_protectionRegion.h b/arm9/lib/include/OS_protectionRegion.h
index 9b65258d..00b7ae63 100644
--- a/arm9/lib/include/OS_protectionRegion.h
+++ b/arm9/lib/include/OS_protectionRegion.h
@@ -41,4 +41,8 @@ static inline u32 OSi_CalcPRParam(u32 address, u32 size, OSiProtectionRegionBase
OS_SetProtectionRegion##regionNo(OSi_CalcPRParam(address, HW_C6_PR_##sizeStr, OSi_PR_BASE_MASK_##sizeStr) \
| 1)
+#define OS_PR3_ACCESS_MASK (HW_C5_PERMIT_MASK << HW_C5_PR3_SFT)
+#define OS_PR3_ACCESS_RW (HW_C5_PERMIT_RW << HW_C5_PR3_SFT)
+#define OS_PR3_ACCESS_RO (HW_C5_PERMIT_RO << HW_C5_PR3_SFT)
+
#endif //POKEDIAMOND_OS_PROTECTIONREGION_H