projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b053dd7
)
cmd: ximg: Respect cache line size for flushing
author
Mario Six
<mario.six@gdsys.cc>
Wed, 28 Mar 2018 12:39:10 +0000
(14:39 +0200)
committer
Tom Rini
<trini@konsulko.com>
Sat, 7 Apr 2018 00:45:44 +0000
(20:45 -0400)
Make sure that the cache line size if respected when flushing the cache.
Signed-off-by: Mario Six <mario.six@gdsys.cc>
cmd/ximg.c
patch
|
blob
|
history
diff --git
a/cmd/ximg.c
b/cmd/ximg.c
index 21b5c377218331012e39e10be13ec74a324cc00b..069c6ad39abed4bff19b804a03667ff7d14fe69b 100644
(file)
--- 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);