summaryrefslogtreecommitdiff
path: root/arm9/lib/src
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-05-05 22:01:17 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2020-05-05 22:01:17 -0400
commit758a54544ed5f434dd1bc8ba6d84dd3291b85414 (patch)
treee8614804c0de3620060ee5f8f5643d778cf251c1 /arm9/lib/src
parentcd5559a2093c2be1167eba2f2ef38eedb32a8a1d (diff)
parent55faa9e2d1b393e832f95485f5412425136bd6b7 (diff)
Merge branch 'master' of https://github.com/martmists/pokediamond into libfs
Diffstat (limited to 'arm9/lib/src')
-rw-r--r--arm9/lib/src/OS_tcm.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arm9/lib/src/OS_tcm.c b/arm9/lib/src/OS_tcm.c
new file mode 100644
index 00000000..5a168c58
--- /dev/null
+++ b/arm9/lib/src/OS_tcm.c
@@ -0,0 +1,13 @@
+//
+// Created by red031000 on 2020-05-05.
+//
+
+#include "OS_tcm.h"
+#include "function_target.h"
+
+ARM_FUNC asm u32 OS_GetDTCMAddress() {
+ mrc p15, 0x0, r0, c9, c1, 0x0
+ ldr r1, =OSi_TCM_REGION_BASE_MASK
+ and r0, r0, r1
+ bx lr
+}