From 751303c2acf22f7fa431690efcddcc8cb0d3a84e Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Sun, 27 Feb 2011 22:44:30 +0000 Subject: 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 --- firmware/export/fat.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'firmware/export/fat.h') 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 #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); -- cgit v1.2.3