summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-12-07 10:24:04 -0700
committerTom Rini <trini@konsulko.com>2024-12-12 16:35:24 -0600
commit1c5c5a3dcca375dd972aa8942f9b079f6111e6fc (patch)
treeac833ec2b27c1ded6f44574d58e1c92b807e2818
parent3ef5246886fd63d3107f1c2d0c7538d7b376df8e (diff)
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>
-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;