diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2020-09-01 16:38:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-01 16:38:12 -0400 |
commit | 8d3c3476967845cf735408947856c46ac6f8b87c (patch) | |
tree | 2676d42b94aa3cb6fd12877ccf98ddf909bf7fb5 /arm9/lib/include | |
parent | 83dcd4ceb4619613e067eda2e84b4226c96f1d4f (diff) | |
parent | 0030f2bd9011382cb06bbd7657a5a4d5e8bbcb1b (diff) |
Merge pull request #279 from red031000/master
arm9 crt0
Diffstat (limited to 'arm9/lib/include')
-rw-r--r-- | arm9/lib/include/consts.h | 9 | ||||
-rw-r--r-- | arm9/lib/include/mmap.h | 11 |
2 files changed, 18 insertions, 2 deletions
diff --git a/arm9/lib/include/consts.h b/arm9/lib/include/consts.h index 5dd0b150..afe1b726 100644 --- a/arm9/lib/include/consts.h +++ b/arm9/lib/include/consts.h @@ -28,6 +28,13 @@ #define HW_C6_PR_2GB 0x3c #define HW_C6_PR_4GB 0x3e +#define HW_C6_PR_ENABLE 1 + +#define HW_C9_TCMR_16KB 0x0a +#define HW_C9_TCMR_32MB 0x20 + +#define HW_CACHE_LINE_SIZE 32 + #define PXI_PROC_ARM7 0x01 #define OSi_CONSOLE_NOT_DETECT 0xffffffff @@ -39,6 +46,6 @@ #define OSi_TCM_REGION_BASE_MASK 0xfffff000 -#define OS_IE_V_BLANK (1UL << 0) +#define OS_IE_V_BLANK (1UL << 0) #endif //POKEDIAMOND_ARM9_CONSTS_H diff --git a/arm9/lib/include/mmap.h b/arm9/lib/include/mmap.h index 81d47a7e..c56b1dfe 100644 --- a/arm9/lib/include/mmap.h +++ b/arm9/lib/include/mmap.h @@ -14,6 +14,10 @@ extern u32 SDK_AUTOLOAD_DTCM_START[]; #define HW_ITCM_SIZE 0x00008000 #define HW_ITCM_END (HW_ITCM + HW_ITCM_SIZE) +#define HW_IOREG 0x04000000 +#define HW_CTRDG_ROM 0x08000000 +#define HW_BIOS 0xffff0000 + #define HW_DTCM ((u32)SDK_AUTOLOAD_DTCM_START) #define HW_DTCM_SIZE 0x00004000 @@ -35,6 +39,8 @@ extern u32 SDK_AUTOLOAD_DTCM_START[]; #define HW_DTCM_SVC_STACK (HW_DTCM_SVC_STACK_END - HW_SVC_STACK_SIZE) #define HW_DTCM_IRQ_STACK_END (HW_DTCM_SVC_STACK) +#define HW_MAIN_MEM_SUB (HW_MAIN_MEM_MAIN_END + 0x400000) + #define HW_BIOS_EXCP_STACK_MAIN (HW_MAIN_MEM + 0x007ffd80) #define HW_EXCP_VECTOR_MAIN (HW_MAIN_MEM + 0x007ffd9c) @@ -84,4 +90,7 @@ extern u32 SDK_AUTOLOAD_DTCM_START[]; #define HW_DB_OAM_END 0x07000800 #define HW_DB_OAM_SIZE (HW_DB_OAM_END-HW_DB_OAM) -#endif //POKEDIAMOND_ARM9_MMAP_H
\ No newline at end of file +#define HW_DTCM_SYSRV_OFS_INTR_VECTOR 0x3c +#define HW_RESET_VECTOR 0xffff0000 + +#endif //POKEDIAMOND_ARM9_MMAP_H |