summaryrefslogtreecommitdiff
path: root/arch/mips/lib/bootm.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-11-30 14:08:28 -0500
committerTom Rini <trini@konsulko.com>2016-11-30 19:31:17 -0500
commita2cb31086f68cc0db95d4373e6dbdb612954f445 (patch)
tree0da2e0ac66e184ba536d525f5007d88cea6f0372 /arch/mips/lib/bootm.c
parentbb417f1c9055dc17df08d1e2c9edc281ad19b648 (diff)
parent6fd596a1aa57bd431263f45b0c57ee8ae6b2403c (diff)
Merge branch 'master' of git://git.denx.de/u-boot-mips
Diffstat (limited to 'arch/mips/lib/bootm.c')
-rw-r--r--arch/mips/lib/bootm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c
index 0c6a4ab3b32..9fec4ad4386 100644
--- a/arch/mips/lib/bootm.c
+++ b/arch/mips/lib/bootm.c
@@ -42,7 +42,7 @@ void arch_lmb_reserve(struct lmb *lmb)
/* adjust sp by 4K to be safe */
sp -= 4096;
- lmb_reserve(lmb, sp, CONFIG_SYS_SDRAM_BASE + gd->ram_size - sp);
+ lmb_reserve(lmb, sp, gd->ram_top - sp);
}
static void linux_cmdline_init(void)