summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-06-23 04:34:18 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-06-23 04:34:18 +0000
commit2494afccc4d1e0dbd085c5b7ed5518815281b422 (patch)
tree4ad37b2a4800ce99687fcb9d5eb0877c888eaa55 /firmware
parent6281d8e21434878a72e63bf917f6c5520f9fb2c1 (diff)
downloadrockbox-2494afccc4d1e0dbd085c5b7ed5518815281b422.zip
rockbox-2494afccc4d1e0dbd085c5b7ed5518815281b422.tar.gz
rockbox-2494afccc4d1e0dbd085c5b7ed5518815281b422.tar.bz2
rockbox-2494afccc4d1e0dbd085c5b7ed5518815281b422.tar.xz
playback.c: don't assume cacheline size is 16 bytes
ideally all targets should define CACHEALIGN_BITS, for now we default it to 16 bytes if it's not specified Since the buffer is already aligned in playback.c no need to align it again in buffering.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27073 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index 7a04422..fe8121c 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -304,7 +304,7 @@ static inline void cpucache_flush(void)
/* 2^CACHEALIGN_BITS = the byte size */
#define CACHEALIGN_SIZE (1u << CACHEALIGN_BITS)
#else
-#define CACHEALIGN_SIZE sizeof(int)
+#define CACHEALIGN_SIZE 16 /* FIXME */
#endif
#endif /* CACHEALIGN_SIZE */