aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Six2018-03-28 14:39:10 +0200
committerTom Rini2018-04-06 20:45:44 -0400
commit8354aa278120448e4fa54fb5982ac62994649bc2 (patch)
treedd4cb3dd9c327dbc98c630ceaa2481ecad61a627
parentb053dd7c5a0004f7a9e6ed2200058fe9b8581190 (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>
-rw-r--r--cmd/ximg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ximg.c b/cmd/ximg.c
index 21b5c377218..069c6ad39ab 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);