summaryrefslogtreecommitdiffstats
path: root/firmware/export/fat.h
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/export/fat.h
parentb25f17200f4dd5e7fc8046ffc8fd6e64a61183bd (diff)
downloadrockbox-751303c2acf22f7fa431690efcddcc8cb0d3a84e.tar.gz
rockbox-751303c2acf22f7fa431690efcddcc8cb0d3a84e.zip
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/export/fat.h')
-rw-r--r--firmware/export/fat.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/export/fat.h b/firmware/export/fat.h
index 36beda711d..38ce6ee74d 100644
--- a/firmware/export/fat.h
+++ b/firmware/export/fat.h
@@ -25,6 +25,7 @@
#include <stdbool.h>
#include "mv.h" /* for volume definitions */
#include "config.h"
+#include "system.h"
/* This value can be overwritten by a target in config-[target].h, but
that behaviour is still experimental */
@@ -81,17 +82,17 @@ struct fat_file
struct fat_dir
{
+ unsigned char sectorcache[SECTOR_SIZE] CACHEALIGN_ATTR;
unsigned int entry;
unsigned int entrycount;
long sector;
struct fat_file file;
- unsigned char sectorcache[SECTOR_SIZE];
/* There are 2-bytes per characters. We don't want to bother too much, as LFN entries are
* at much 255 characters longs, that's at most 20 LFN entries. Each entry hold at most
* 13 characters, that a total of 260 characters. So we keep a buffer of that size.
* Keep coherent with fat.c code. */
unsigned char longname[260 * 2];
-};
+} CACHEALIGN_ATTR;
#ifdef HAVE_HOTSWAP
extern void fat_lock(void);