summaryrefslogtreecommitdiff
path: root/firmware/common
diff options
context:
space:
mode:
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 3477c10061..bc4a90a485 100644
--- a/firmware/common/file.c
+++ b/firmware/common/file.c
@@ -39,7 +39,7 @@
39*/ 39*/
40 40
41struct filedesc { 41struct 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
54static struct filedesc openfiles[MAX_OPEN_FILES]; 54static struct filedesc openfiles[MAX_OPEN_FILES] CACHEALIGN_ATTR;
55 55
56static int flush_cache(int fd); 56static int flush_cache(int fd);
57 57