diff --git a/cpu/drc/cmn.c b/cpu/drc/cmn.c index 3f174a031..b0b7308f8 100644 --- a/cpu/drc/cmn.c +++ b/cpu/drc/cmn.c @@ -10,7 +10,13 @@ #include #include "cmn.h" -u8 ALIGNED(4096) tcache_default[DRC_TCACHE_SIZE]; +#if defined(__aarch64__) || defined(__VFP_FP__) +// might be running on a 64k-page kernel +#define PICO_PAGE_ALIGN 65536 +#else +#define PICO_PAGE_ALIGN 4096 +#endif +u8 ALIGNED(PICO_PAGE_ALIGN) tcache_default[DRC_TCACHE_SIZE]; u8 *tcache; void drc_cmn_init(void)