diff mbox series

[v2,10/18] spl: Support a relocated stack in any XPL phase

Message ID 20240920081309.140426-11-sjg@chromium.org
State Under Review
Delegated to: Tom Rini
Headers show
Series vbe: Series part E | expand

Commit Message

Simon Glass Sept. 20, 2024, 8:12 a.m. UTC
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>
---

(no changes since v1)

 common/spl/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/common/spl/spl.c b/common/spl/spl.c
index 89a972dfc84..3f432d0fa7a 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -899,7 +899,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;