summaryrefslogtreecommitdiff
path: root/lib_m68k/bootm.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-02-27 21:51:50 -0600
committerMarian Balakowicz <m8@semihalf.com>2008-02-29 13:15:56 +0100
commitd3f2fa0d278467b2232e4eb2372f905c3febfbeb (patch)
tree354a389881ddaacfc29a0b02c6fb12b9cb7c1f81 /lib_m68k/bootm.c
parente822d7fc4dd4755d4d0a22f05e33f33d1a0481da (diff)
downloadu-boot-imx-d3f2fa0d278467b2232e4eb2372f905c3febfbeb.zip
u-boot-imx-d3f2fa0d278467b2232e4eb2372f905c3febfbeb.tar.gz
u-boot-imx-d3f2fa0d278467b2232e4eb2372f905c3febfbeb.tar.bz2
[new uImage] Provide ability to restrict region used for boot images
Allow the user to set 'bootm_low' and 'bootm_size' env vars as a way to restrict what memory range is used for bootm. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'lib_m68k/bootm.c')
-rw-r--r--lib_m68k/bootm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib_m68k/bootm.c b/lib_m68k/bootm.c
index 8429ca0..eca044e 100644
--- a/lib_m68k/bootm.c
+++ b/lib_m68k/bootm.c
@@ -57,12 +57,14 @@ void do_bootm_linux(cmd_tbl_t * cmdtp, int flag,
int ret;
ulong cmd_start, cmd_end;
- ulong bootmap_base = 0;
+ ulong bootmap_base;
bd_t *kbd;
ulong ep = 0;
void (*kernel) (bd_t *, ulong, ulong, ulong, ulong);
struct lmb *lmb = images->lmb;
+ bootmap_base = getenv_bootm_low();
+
/*
* Booting a (Linux) kernel image
*