aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Packham2016-10-25 20:22:48 +1300
committerTom Rini2016-10-31 10:13:18 -0400
commit0a6036da63ebc618204cd5c3d5e8cac833845751 (patch)
treef69db0c13202ee3b564db3fbfd018480d886485c
parent3450a8596d3c06107ccf44d2ad41402449e681dd (diff)
cmd: load: align cache flush
Prevent cache misalignment message by ensuring that a whole cache line is flushed. Signed-off-by: Chris Packham <judge.packham@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
-rw-r--r--cmd/load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/load.c b/cmd/load.c
index 65557e4f9ec..77c3359b29b 100644
--- a/cmd/load.c
+++ b/cmd/load.c
@@ -997,7 +997,7 @@ static ulong load_serial_ymodem(ulong offset, int mode)
xyzModem_stream_terminate(false, &getcxmodem);
- flush_cache(offset, size);
+ flush_cache(offset, ALIGN(size, ARCH_DMA_MINALIGN));
printf("## Total Size = 0x%08x = %d Bytes\n", size, size);
setenv_hex("filesize", size);