]> git.sur5r.net Git - u-boot/blobdiff - arch/mips/lib/bootm.c
Merge git://git.denx.de/u-boot-mpc85xx
[u-boot] / arch / mips / lib / bootm.c
index aa0475a4954e5920e2fad7a785175bb71c5af28e..be877625a8ecaf9d7fa9c8ec826b169597432f8b 100644 (file)
@@ -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)