diff options
author | Stefano Babic <sbabic@denx.de> | 2013-09-13 12:04:54 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2013-09-13 12:10:07 +0200 |
commit | c4a7ece02046f647019cc0aaddf530833a8db29c (patch) | |
tree | 06342cd9b8cc41b95442a992fb38a1bc8671b05c /common/cmd_ximg.c | |
parent | b5e7f1bc4b899ea34e838d5d60b3e6f8e479d0a9 (diff) | |
parent | 8386ca8bea7a6a8469c3b6a99313afb642e6cbeb (diff) | |
download | u-boot-imx-c4a7ece02046f647019cc0aaddf530833a8db29c.zip u-boot-imx-c4a7ece02046f647019cc0aaddf530833a8db29c.tar.gz u-boot-imx-c4a7ece02046f647019cc0aaddf530833a8db29c.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-arm
Conflicts:
MAINTAINERS
boards.cfg
Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'common/cmd_ximg.c')
-rw-r--r-- | common/cmd_ximg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c index b439be3..65a8319 100644 --- a/common/cmd_ximg.c +++ b/common/cmd_ximg.c @@ -20,6 +20,7 @@ #include <bzlib.h> #endif #include <asm/byteorder.h> +#include <asm/io.h> #ifndef CONFIG_SYS_XIMG_LEN /* use 8MByte as default max gunzip size */ @@ -34,7 +35,7 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) ulong data, len, count; int verify; int part = 0; - image_header_t *hdr; + image_header_t *hdr = NULL; #if defined(CONFIG_FIT) const char *uname = NULL; const void* fit_hdr; @@ -222,7 +223,7 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) * which requires at most 2300 KB of memory. */ i = BZ2_bzBuffToBuffDecompress( - (char *)ntohl(hdr->ih_load), + map_sysmem(ntohl(hdr->ih_load), 0), &unc_len, (char *)data, len, CONFIG_SYS_MALLOC_LEN < (4096 * 1024), 0); |