summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2010-06-20 12:34:08 +0000
committerMichael Sparmann <theseven@rockbox.org>2010-06-20 12:34:08 +0000
commit43fa52aaca55e9637be5cbd8cf94af2c86e32846 (patch)
treeba32b3ba77b19cfe7d8054547992250824df3f24 /firmware
parent7caf78848e44e3c7865cfe1643e5c0d520d26dca (diff)
downloadrockbox-43fa52aaca55e9637be5cbd8cf94af2c86e32846.tar.gz
rockbox-43fa52aaca55e9637be5cbd8cf94af2c86e32846.zip
Also define STORAGE_ALIGN_ATTR if STORAGE_WANTS_ALIGN isn't defined
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26984 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/system.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index 205e4bc058..5ac92e015d 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -344,6 +344,7 @@ static inline void cpucache_flush(void)
344/* Number of bytes in the last cacheline assuming buffer of size x is aligned */ 344/* Number of bytes in the last cacheline assuming buffer of size x is aligned */
345#define STORAGE_OVERLAP(x) ((x) & (CACHEALIGN_SIZE - 1)) 345#define STORAGE_OVERLAP(x) ((x) & (CACHEALIGN_SIZE - 1))
346#else 346#else
347#define STORAGE_ALIGN_ATTR
347#define STORAGE_ALIGN_DOWN(x) (x) 348#define STORAGE_ALIGN_DOWN(x) (x)
348#define STORAGE_PAD(x) (x) 349#define STORAGE_PAD(x) (x)
349#define STORAGE_OVERLAP(x) 0 350#define STORAGE_OVERLAP(x) 0