From ec58acee764ca6cd64b499ca0bb2b0626fee9cd0 Mon Sep 17 00:00:00 2001 From: red031000 Date: Tue, 5 May 2020 23:23:02 +0100 Subject: OS_tcm.c --- arm9/lib/include/OS_init.h | 1 + arm9/lib/include/OS_tcm.h | 12 ++++++++++++ arm9/lib/include/consts.h | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 arm9/lib/include/OS_tcm.h (limited to 'arm9/lib/include') diff --git a/arm9/lib/include/OS_init.h b/arm9/lib/include/OS_init.h index d2497836..6fbfc826 100644 --- a/arm9/lib/include/OS_init.h +++ b/arm9/lib/include/OS_init.h @@ -7,6 +7,7 @@ #include "types.h" #include "consts.h" +#include "OS_tcm.h" #include "OS_spinLock.h" #include "OS_thread.h" #include "OS_protectionRegion.h" diff --git a/arm9/lib/include/OS_tcm.h b/arm9/lib/include/OS_tcm.h new file mode 100644 index 00000000..7112ca0e --- /dev/null +++ b/arm9/lib/include/OS_tcm.h @@ -0,0 +1,12 @@ +// +// Created by red031000 on 2020-05-05. +// + +#ifndef POKEDIAMOND_OS_TCM_H +#define POKEDIAMOND_OS_TCM_H + +#include "consts.h" + +u32 OS_GetDTCMAddress(); + +#endif //POKEDIAMOND_OS_TCM_H diff --git a/arm9/lib/include/consts.h b/arm9/lib/include/consts.h index 81330924..0e5066de 100644 --- a/arm9/lib/include/consts.h +++ b/arm9/lib/include/consts.h @@ -55,6 +55,8 @@ #define OS_CONSOLE_SIZE_MASK 0x00000003 #define OS_CONSOLE_SIZE_4MB 0x00000001 +#define OSi_TCM_REGION_BASE_MASK 0xfffff000 + #define OSi_GetArenaInfo() (*(OSArenaInfo*)HW_ARENA_INFO_BUF) #define OSi_TRUNC(n, a) (((u32) (n)) & ~((a) - 1)) #define OSi_ROUND(n, a) (((u32) (n) + (a) - 1) & ~((a) - 1)) -- cgit v1.2.3