aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-12-19 11:28:59 -0700
committerTom Rini <trini@konsulko.com>2024-12-27 15:16:10 -0600
commit7f67b6fa835ac885073183846f797808795a5bde (patch)
tree8fd2229e638f2f908019b9009ffa256de6ff1870 /common
parenta7d4d119440f9e1b7c8c3806a2ebe2008f7785d7 (diff)
downloadu-boot-7f67b6fa835ac885073183846f797808795a5bde.tar.gz
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 <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl.c2
1 files changed, 1 insertions, 1 deletions
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;