summaryrefslogtreecommitdiff
path: root/firmware/common
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2011-02-27 22:44:30 +0000
committerMichael Sparmann <theseven@rockbox.org>2011-02-27 22:44:30 +0000
commit751303c2acf22f7fa431690efcddcc8cb0d3a84e (patch)
tree1b1943ffdbefb3a2fe96e95a2af5c6c6c12968c5 /firmware/common
parentb25f17200f4dd5e7fc8046ffc8fd6e64a61183bd (diff)
downloadrockbox-751303c2acf22f7fa431690efcddcc8cb0d3a84e.zip
rockbox-751303c2acf22f7fa431690efcddcc8cb0d3a84e.tar.gz
rockbox-751303c2acf22f7fa431690efcddcc8cb0d3a84e.tar.bz2
rockbox-751303c2acf22f7fa431690efcddcc8cb0d3a84e.tar.xz
iPod Classic CE-ATA Support (Part 1 of 4: Cacheline align some statically allocated sector buffers)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29444 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common')
-rw-r--r--firmware/common/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c
index 3477c10..bc4a90a 100644
--- a/firmware/common/file.c
+++ b/firmware/common/file.c
@@ -39,7 +39,7 @@
*/
struct filedesc {
- unsigned char cache[SECTOR_SIZE];
+ unsigned char cache[SECTOR_SIZE] CACHEALIGN_ATTR;
int cacheoffset; /* invariant: 0 <= cacheoffset <= SECTOR_SIZE */
long fileoffset;
long size;
@@ -49,9 +49,9 @@ struct filedesc {
bool write;
bool dirty;
bool trunc;
-};
+} CACHEALIGN_ATTR;
-static struct filedesc openfiles[MAX_OPEN_FILES];
+static struct filedesc openfiles[MAX_OPEN_FILES] CACHEALIGN_ATTR;
static int flush_cache(int fd);