summaryrefslogtreecommitdiff
path: root/include/nitro/os_protectionRegion.c
diff options
context:
space:
mode:
authorred031000 <rubenru09@aol.com>2020-04-24 18:15:28 +0100
committerred031000 <rubenru09@aol.com>2020-04-24 18:15:28 +0100
commite028229b82c0e20aa9a8c0a88eece2a41f4a0fd4 (patch)
tree74960adfb31cddcf30675a6b08e33443c9cbc98f /include/nitro/os_protectionRegion.c
parent8ef3e3d8e1ec8ea4596e50e8453bf42a0ca69fc1 (diff)
protection regions
Diffstat (limited to 'include/nitro/os_protectionRegion.c')
-rw-r--r--include/nitro/os_protectionRegion.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/nitro/os_protectionRegion.c b/include/nitro/os_protectionRegion.c
new file mode 100644
index 00000000..b70f9056
--- /dev/null
+++ b/include/nitro/os_protectionRegion.c
@@ -0,0 +1,17 @@
+//
+// Created by red031000 on 2020-04-24.
+//
+
+#include "os_protectionRegion.h"
+
+asm void OS_SetProtectionRegion1(u32 param)
+{
+ mcr p15, 0x0, r0, c6, c1, 0x0
+ bx lr
+}
+
+asm void OS_SetProtectionRegion2(u32 param)
+{
+ mcr p15, 0x0, r0, c6, c2, 0x0
+ bx lr
+} \ No newline at end of file