diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/system.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index 5128801725..1f8ed033fd 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h | |||
@@ -378,12 +378,16 @@ static inline void cpucache_flush(void) | |||
378 | #if defined(CPU_ARM) | 378 | #if defined(CPU_ARM) |
379 | /* Use ARMs cache alignment. */ | 379 | /* Use ARMs cache alignment. */ |
380 | #define MEM_ALIGN_ATTR CACHEALIGN_ATTR | 380 | #define MEM_ALIGN_ATTR CACHEALIGN_ATTR |
381 | #define MEM_ALIGN_SIZE CACHEALIGN_SIZE | ||
381 | #elif defined(CPU_COLDFIRE) | 382 | #elif defined(CPU_COLDFIRE) |
382 | /* Use fixed alignment of 16 bytes. Speed up only for 'movem' in DRAM. */ | 383 | /* Use fixed alignment of 16 bytes. Speed up only for 'movem' in DRAM. */ |
383 | #define MEM_ALIGN_ATTR __attribute__((aligned(16))) | 384 | #define MEM_ALIGN_ATTR __attribute__((aligned(16))) |
385 | #define MEM_ALIGN_SIZE 16 | ||
384 | #else | 386 | #else |
385 | /* Do nothing. */ | 387 | /* Do nothing. */ |
386 | #define MEM_ALIGN_ATTR | 388 | #define MEM_ALIGN_ATTR |
389 | /* Align pointer size */ | ||
390 | #define MEM_ALIGN_SIZE sizeof(intptr_t) | ||
387 | #endif | 391 | #endif |
388 | 392 | ||
389 | #ifdef STORAGE_WANTS_ALIGN | 393 | #ifdef STORAGE_WANTS_ALIGN |