x86: Update SPL for coreboot
[oweals/u-boot.git] / cmd / ximg.c
index 22b2037a33f51187a5c024717811d372a434d99b..770f6a3eede78bf2edce966cf831f3f5e027dc24 100644 (file)
@@ -17,6 +17,7 @@
 #include <env.h>
 #include <gzip.h>
 #include <image.h>
+#include <malloc.h>
 #include <mapmem.h>
 #include <watchdog.h>
 #if defined(CONFIG_BZIP2)
@@ -33,7 +34,7 @@
 static int
 do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
 {
-       ulong           addr = load_addr;
+       ulong           addr = image_load_addr;
        ulong           dest = 0;
        ulong           data, len;
        int             verify;