From: Chris Packham Date: Tue, 25 Oct 2016 07:22:48 +0000 (+1300) Subject: cmd: load: align cache flush X-Git-Tag: v2016.11-rc3~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0a6036da63ebc618204cd5c3d5e8cac833845751;p=u-boot cmd: load: align cache flush Prevent cache misalignment message by ensuring that a whole cache line is flushed. Signed-off-by: Chris Packham Reviewed-by: Stefan Roese --- diff --git a/cmd/load.c b/cmd/load.c index 65557e4f9e..77c3359b29 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);