summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-08-15 08:24:40 -0500
committerWolfgang Denk <wd@denx.de>2008-08-26 23:38:48 +0200
commite906cfae08e8cc2447f59b1bc4c22ab9c3c286d2 (patch)
tree8417e544ba93769e760e6e562e67afe4e5805a82 /include/image.h
parent54f9c86691309b2f919f567f9255b8bcad2c7651 (diff)
downloadu-boot-imx-e906cfae08e8cc2447f59b1bc4c22ab9c3c286d2.zip
u-boot-imx-e906cfae08e8cc2447f59b1bc4c22ab9c3c286d2.tar.gz
u-boot-imx-e906cfae08e8cc2447f59b1bc4c22ab9c3c286d2.tar.bz2
bootm: move lmb into the bootm_headers_t structure
To allow for persistent state between future bootm subcommands we need the lmb to exist in a global state. Moving it into the bootm_headers_t allows us to do that. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index 653cbc6..c1acd7b 100644
--- a/include/image.h
+++ b/include/image.h
@@ -229,7 +229,9 @@ typedef struct bootm_headers {
ulong ft_len; /* length of flat device tree */
int verify; /* getenv("verify")[0] != 'n' */
- struct lmb *lmb; /* for memory mgmt */
+#ifndef USE_HOSTCC
+ struct lmb lmb; /* for memory mgmt */
+#endif
} bootm_headers_t;
/*