[PATCH v2] lmb: Reserve U-Boot separately if relocation is disabled

Simon Glass sjg at chromium.org
Sun Oct 24 21:53:44 CEST 2021


On Fri, 15 Oct 2021 at 09:49, <marek.vasut at gmail.com> wrote:
>
> From: Marek Vasut <marek.vasut+renesas at gmail.com>
>
> In case U-Boot starts with GD_FLG_SKIP_RELOC, the U-Boot code is
> not relocated, however the stack and heap is at the end of DRAM
> after relocation. Reserve a LMB area for the non-relocated U-Boot
> code so it won't be overwritten.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Tom Rini <trini at konsulko.com>
> ---
> V2: Make this fully generic
> ---
>  lib/lmb.c | 5 +++++
>  1 file changed, 5 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list