[PATCH v1 4/4] common: Add an optionto relocate on ram top

Ilias Apalodimas ilias.apalodimas at linaro.org
Fri Apr 10 07:16:10 CEST 2026


On Mon, 6 Apr 2026 at 15:19, Anshul Dalal <anshuld at ti.com> wrote:
>
> On Fri, 03 Apr 2026 12:01:06 +0300, Ilias Apalodimas <ilias.apalodimas at linaro.org> wrote:
> > diff --git a/common/board_f.c b/common/board_f.c
> > index dd5518b60db..2eab344037c 100644
> > --- a/common/board_f.c
> > +++ b/common/board_f.c
> > @@ -353,8 +357,19 @@ static int setup_ram_config(void)
> >        */
> >       gd->ram_size -= CONFIG_SYS_MEM_TOP_HIDE;
> >  #endif
> > +#if CONFIG_IS_ENABLED(RELOC_ADDR_TOP)
>
> Using a regular 'if (CONFIG_IS_ENABLED(RELOC_ADDR_TOP))' here would avoid
> the need for '#if' macros around variable definitions above.
>
Thanks,

Ill get rid of the ifdefery in v2

> Reviewed-by: Anshul Dalal <anshuld at ti.com>
>
> --
> Anshul Dalal <anshuld at ti.com>


More information about the U-Boot mailing list