commit | 7feefe4c4d046652f9b69e4c7365d709a4f1d195 | [log] [tgz] |
---|---|---|
author | Mario Six <mario.six@gdsys.cc> | Wed Mar 28 14:39:10 2018 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri Apr 06 20:45:44 2018 -0400 |
tree | dd4cb3dd9c327dbc98c630ceaa2481ecad61a627 | |
parent | e3d057ae5c9593632dd9c3e34affe65e771067a9 [diff] |
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 <mario.six@gdsys.cc>
diff --git a/cmd/ximg.c b/cmd/ximg.c index 21b5c37..069c6ad 100644 --- a/cmd/ximg.c +++ b/cmd/ximg.c
@@ -249,7 +249,7 @@ 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);