diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2020-05-05 22:01:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 22:01:07 -0400 |
commit | 55faa9e2d1b393e832f95485f5412425136bd6b7 (patch) | |
tree | 4a0c80a87708a8468e2d46b14813d5fd6a5e304e /arm9/lib/src | |
parent | 962b4e0e9505bdf1eafc7679b428977658726042 (diff) | |
parent | ec58acee764ca6cd64b499ca0bb2b0626fee9cd0 (diff) |
Merge pull request #66 from red031000/master
OS_tcm.c
Diffstat (limited to 'arm9/lib/src')
-rw-r--r-- | arm9/lib/src/OS_tcm.c | 13 |
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 +} |