summaryrefslogtreecommitdiff
path: root/firmware/export/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/system.h')
-rw-r--r--firmware/export/system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index 3984ebeb11..bd31c03028 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -295,10 +295,14 @@ static inline void cpucache_flush(void)
295} 295}
296#endif 296#endif
297 297
298#ifndef CACHEALIGN_SIZE /* could be elsewhere for a particular reason */
298#ifdef CACHEALIGN_BITS 299#ifdef CACHEALIGN_BITS
299/* 2^CACHEALIGN_BITS = the byte size */ 300/* 2^CACHEALIGN_BITS = the byte size */
300#define CACHEALIGN_SIZE (1u << CACHEALIGN_BITS) 301#define CACHEALIGN_SIZE (1u << CACHEALIGN_BITS)
302#else
303#define CACHEALIGN_SIZE sizeof(int)
301#endif 304#endif
305#endif /* CACHEALIGN_SIZE */
302 306
303#ifdef PROC_NEEDS_CACHEALIGN 307#ifdef PROC_NEEDS_CACHEALIGN
304/* Cache alignment attributes and sizes are enabled */ 308/* Cache alignment attributes and sizes are enabled */