diff mbox

[U-Boot,1/1] common: add cache flush to imxtract function

Message ID 1421076198-5255-1-git-send-email-pieter.voorthuijsen@prodrive-technologies.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Pieter Voorthuijsen Jan. 12, 2015, 3:23 p.m. UTC
A cache flush is required when an image is extracted that is required on another core.

Signed-off-by: Pieter Voorthuijsen <pieter.voorthuijsen@prodrive-technologies.com>
---
 common/cmd_ximg.c |    2 ++
 1 file changed, 2 insertions(+)

Comments

Tom Rini Feb. 2, 2015, 6:57 p.m. UTC | #1
On Mon, Jan 12, 2015 at 04:23:18PM +0100, Pieter Voorthuijsen wrote:

> A cache flush is required when an image is extracted that is required on another core.
> 
> Signed-off-by: Pieter Voorthuijsen <pieter.voorthuijsen@prodrive-technologies.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c
index ae2714d..64b9186 100644
--- a/common/cmd_ximg.c
+++ b/common/cmd_ximg.c
@@ -247,6 +247,8 @@  do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
 		puts("OK\n");
 	}
 
+	flush_cache(dest, len);
+
 	setenv_hex("fileaddr", data);
 	setenv_hex("filesize", len);