aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2017-12-14 11:19:22 +0100
committerTom Rini <trini@konsulko.com>2017-12-18 13:06:30 -0500
commit1a1e7072e3f5499c919fadf949ddb5ce654a17a3 (patch)
tree106e8c336fb648d007af7d4afb06db9130a360d7
parentdd0829f6c3938dd1bebd86ec5b790fc9b53db8f0 (diff)
downloadu-boot-1a1e7072e3f5499c919fadf949ddb5ce654a17a3.zip
u-boot-1a1e7072e3f5499c919fadf949ddb5ce654a17a3.tar.gz
u-boot-1a1e7072e3f5499c919fadf949ddb5ce654a17a3.tar.bz2
common: image.c: Fix CACHE: Misaligned operation output
When booting a itb file with a Ramdisk on a imx6 based board, U-Boot drops the warning: Loading Kernel Image ... OK Loading Ramdisk to 4ecf1000, end 4ef8b11f ... \ CACHE: Misaligned operation at range [4ecf1000, 4ef8b11f] Fix it! Signed-off-by: Heiko Schocher <hs@denx.de> Tested-by: Ayoub Zaki <hs@denx.de>
-rw-r--r--common/image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/image.c b/common/image.c
index 96c5f58..e9609cd 100644
--- a/common/image.c
+++ b/common/image.c
@@ -1186,7 +1186,8 @@ int boot_ramdisk_high(struct lmb *lmb, ulong rd_data, ulong rd_len,
* AMP boot scenarios in which we might not be
* HW cache coherent
*/
- flush_cache((unsigned long)*initrd_start, rd_len);
+ flush_cache((unsigned long)*initrd_start,
+ ALIGN(rd_len, ARCH_DMA_MINALIGN));
#endif
puts("OK\n");
}