]> git.baikalelectronics.ru Git - uboot.git/commit
MIPS: Use ram_top, not bi_memsize, in arch_lmb_reserve
authorPaul Burton <paul.burton@imgtec.com>
Mon, 26 Sep 2016 18:28:56 +0000 (19:28 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 30 Nov 2016 15:15:51 +0000 (16:15 +0100)
commitbf263908e668ec090df6cfa216e13808ee2be364
tree8f960e9f13eb72dfb4ac2289fa2a26666e6ced53
parent7d9fa1cd1a17981776da50bba1ce859f095b56ae
MIPS: Use ram_top, not bi_memsize, in arch_lmb_reserve

When calculating the region to reserve for the stack in
arch_lmb_reserve, make use of ram_top instead of adding bi_memsize to
CONFIG_SYS_SDRAM_BASE. This avoids overflow if the system has enough
memory to reach the end of the address space.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
arch/mips/lib/bootm.c