summaryrefslogtreecommitdiff
path: root/common/cmd_bootm.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_bootm.c')
-rw-r--r--common/cmd_bootm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index a32a5a2561..8595ef6889 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -124,6 +124,7 @@ int do_bootm (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
ulong os_data, os_len;
ulong image_start, image_end;
ulong load_start, load_end;
+ ulong mem_start, mem_size;
struct lmb lmb;
@@ -134,11 +135,10 @@ int do_bootm (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
lmb_init(&lmb);
-#ifdef CFG_SDRAM_BASE
- lmb_add(&lmb, CFG_SDRAM_BASE, gd->bd->bi_memsize);
-#else
- lmb_add(&lmb, 0, gd->bd->bi_memsize);
-#endif
+ mem_start = getenv_bootm_low();
+ mem_size = getenv_bootm_size();
+
+ lmb_add(&lmb, mem_start, mem_size);
board_lmb_reserve(&lmb);