From 70d1600ef2607ecb112ca270f5982b4829e44c19 Mon Sep 17 00:00:00 2001 From: red031000 Date: Wed, 10 Jun 2020 02:25:43 +0100 Subject: arm9 OS_thread --- arm9/lib/include/consts.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'arm9/lib/include/consts.h') diff --git a/arm9/lib/include/consts.h b/arm9/lib/include/consts.h index 885deff0..c09e8cd9 100644 --- a/arm9/lib/include/consts.h +++ b/arm9/lib/include/consts.h @@ -27,6 +27,8 @@ #define HW_C6_PR_2GB 0x3c #define HW_C6_PR_4GB 0x3e +#define HW_SYSTEM_CLOCK 33514000 + #define PXI_PROC_ARM7 0x01 #define OSi_CONSOLE_NOT_DETECT 0xffffffff @@ -36,6 +38,12 @@ #define OS_CONSOLE_SIZE_MASK 0x00000003 #define OS_CONSOLE_SIZE_4MB 0x00000001 +#define OS_THREAD_LAUNCHER_PRIORITY 0x10 +#define OS_THREAD_PRIORITY_MIN 0x00 +#define OS_THREAD_PRIORITY_MAX 0x1F + +#define OS_THREAD_SPECIFIC_MAX 0x03 + #define OSi_TCM_REGION_BASE_MASK 0xfffff000 #define OSi_TRUNC(n, a) (((u32) (n)) & ~((a) - 1)) -- cgit v1.2.3