[U-Boot] [PATCH] ARM: bootm: don't assume sp is in DRAM bank 0
Simon Glass
sjg at chromium.org
Mon Jan 8 04:52:43 UTC 2018
On 5 January 2018 at 13:04, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> arch_lmb_reserve() currently assumes that the stack pointer is within DRAM
> bank 0. This is not necessarily true. Enhance the code to search through
> DRAM banks until the bank that does contain SP is found, and then reserve
> the tail of that bank.
>
> Fixes: 2d1916e48bd8 ("ARM: add flat device tree support")
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
> It would be best to apply this patch before "ARM: Tegra186: search for
> best RAM bank" is applied.
> ---
> arch/arm/lib/bootm.c | 15 ++++++++++++---
> 1 file changed, 12 insertions(+), 3 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list