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

Anshul Dalal anshuld at ti.com
Mon Apr 6 14:19:39 CEST 2026


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.

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

-- 
Anshul Dalal <anshuld at ti.com>


More information about the U-Boot mailing list