]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
common: add cache flush to imxtract function
authorPieter Voorthuijsen <pieter.voorthuijsen@prodrive-technologies.com>
Mon, 12 Jan 2015 15:23:18 +0000 (16:23 +0100)
committerTom Rini <trini@ti.com>
Thu, 29 Jan 2015 18:38:39 +0000 (13:38 -0500)
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

index ae2714d3728021bdc0d262f2bbe3b4cb54fcfe52..64b9186d738920dabf3e8573dcebaecdbb3ee562 100644 (file)
@@ -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);