summaryrefslogtreecommitdiffstats
path: root/lib_m68k
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
parente822d7fc4dd4755d4d0a22f05e33f33d1a0481da (diff)
downloadblackbird-obmc-uboot-d3f2fa0d278467b2232e4eb2372f905c3febfbeb.tar.gz
blackbird-obmc-uboot-d3f2fa0d278467b2232e4eb2372f905c3febfbeb.zip
[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')
-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 8429ca09e6..eca044ecea 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
*
OpenPOWER on IntegriCloud