From: Mario Six Date: Wed, 28 Mar 2018 12:39:10 +0000 (+0200) Subject: cmd: ximg: Respect cache line size for flushing X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=8354aa278120448e4fa54fb5982ac62994649bc2;p=u-boot.git cmd: ximg: Respect cache line size for flushing Make sure that the cache line size if respected when flushing the cache. Signed-off-by: Mario Six --- diff --git a/cmd/ximg.c b/cmd/ximg.c index 21b5c37721..069c6ad39a 100644 --- a/cmd/ximg.c +++ b/cmd/ximg.c @@ -249,7 +249,7 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) puts("OK\n"); } - flush_cache(dest, len); + flush_cache(dest, ALIGN(len, ARCH_DMA_MINALIGN)); env_set_hex("fileaddr", data); env_set_hex("filesize", len);