From: Simon Glass Date: Sat, 7 Dec 2024 17:24:04 +0000 (-0700) Subject: spl: Support a relocated stack in any XPL phase X-Git-Tag: v2025.04-rc1~17^2~61^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c5c5a3dcca375dd972aa8942f9b079f6111e6fc;p=pandora-u-boot.git spl: Support a relocated stack in any XPL phase The current check looks only at SPL, but TPL or VPL might have a different setting. Update the condition. Signed-off-by: Simon Glass --- diff --git a/common/spl/spl.c b/common/spl/spl.c index 91ee07f7079..702920bd2f7 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -896,7 +896,7 @@ __weak void spl_relocate_stack_check(void) */ ulong spl_relocate_stack_gd(void) { -#ifdef CONFIG_SPL_STACK_R +#if CONFIG_IS_ENABLED(STACK_R) gd_t *new_gd; ulong ptr = CONFIG_SPL_STACK_R_ADDR;