diff options
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c index 3477c10061..bc4a90a485 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c | |||
@@ -39,7 +39,7 @@ | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | struct filedesc { | 41 | struct filedesc { |
42 | unsigned char cache[SECTOR_SIZE]; | 42 | unsigned char cache[SECTOR_SIZE] CACHEALIGN_ATTR; |
43 | int cacheoffset; /* invariant: 0 <= cacheoffset <= SECTOR_SIZE */ | 43 | int cacheoffset; /* invariant: 0 <= cacheoffset <= SECTOR_SIZE */ |
44 | long fileoffset; | 44 | long fileoffset; |
45 | long size; | 45 | long size; |
@@ -49,9 +49,9 @@ struct filedesc { | |||
49 | bool write; | 49 | bool write; |
50 | bool dirty; | 50 | bool dirty; |
51 | bool trunc; | 51 | bool trunc; |
52 | }; | 52 | } CACHEALIGN_ATTR; |
53 | 53 | ||
54 | static struct filedesc openfiles[MAX_OPEN_FILES]; | 54 | static struct filedesc openfiles[MAX_OPEN_FILES] CACHEALIGN_ATTR; |
55 | 55 | ||
56 | static int flush_cache(int fd); | 56 | static int flush_cache(int fd); |
57 | 57 | ||