diff options
Diffstat (limited to 'arm9/lib/include')
| -rw-r--r-- | arm9/lib/include/OS_init.h | 1 | ||||
| -rw-r--r-- | arm9/lib/include/OS_tcm.h | 12 | ||||
| -rw-r--r-- | arm9/lib/include/consts.h | 2 | 
3 files changed, 15 insertions, 0 deletions
| 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)) | 
