summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cdc0dc1)
raw | patch | inline | side by side (parent: cdc0dc1)
author | Thanh Tran <thanh-tran@ti.com> | |
Tue, 17 Sep 2019 19:03:58 +0000 (15:03 -0400) | ||
committer | Mahesh Radhakrishnan <a0875154@ti.com> | |
Sun, 29 Sep 2019 16:28:00 +0000 (11:28 -0500) |
On R5, USB host application runs into problem that corrupts program memory
when USB host application reads file data. The problem is caused by cache
invalidate operation. Fix is to align this buffer with cache-line size
when USB host application reads file data. The problem is caused by cache
invalidate operation. Fix is to align this buffer with cache-line size
ff.h | patch | blob | history |
index d441b2579a14d965dfcab18561a8f2e45883f4c3..5fbb3797e802157213d8a8827c82de387757a4cc 100644 (file)
--- a/ff.h
+++ b/ff.h
DWORD* cltbl; /* Pointer to the cluster link map table (Nulled on file open) */\r
#endif\r
#if !_FS_TINY\r
- BYTE buf[_MAX_SS]; /* File private data read/write window */\r
+ /* File private data read/write window */\r
+#if defined(__GNUC__) || defined(gcc) || \\r
+ defined(__aarch64__) || defined (__TI_ARM_V7R4__) || defined(__ARM_ARCH_7A__) || defined (__TI_ARM_V7M4__) || defined (__TI_ARM_V5__)\r
+ BYTE buf[_MAX_SS] __attribute__ ((aligned (128U)));\r
+#else\r
+ BYTE buf[_MAX_SS];\r
+#endif\r
#endif\r
} FIL;\r
\r