spl: Correct address in spl_relocate_stack_gd()
PATCH 1/1 spl: Correct address in spl_relocate_stack_gd()
During the Kconfig conversion one of the changes was missed. CONFIG_SPL_STACK_R should be CONFIG_SPL_STACK_R_ADDR since we want the address.
Signed-off-by Simon Glass <[email protected]>
---
common/spl/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/spl/spl.c +1 -1
@@ -328,7 +328,7 @@ ulong spl_relocate_stack_gd(void)ulong ptr;/* Get stack position: use 8-byte alignment for ABI compliance */ - ptr =CONFIG_SPL_STACK_R -sizeof (gd_t); + ptr =CONFIG_SPL_STACK_R_ADDR -sizeof (gd_t); ptr &= ~7 ; new_gd = (gd_t *)ptr;memcpy (new_gd, (void *)gd,sizeof (gd_t));
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH 1/1 spl: Correct address in spl_relocate_stack_gd()
Quoted 6 lines · Simon Glass
During the
Kconfigconversion one of the changes was missed.CONFIG_SPL_STACK_Rshould beCONFIG_SPL_STACK_R_ADDRsince we want the address.Reported-by Tim Harvey <[email protected]>Signed-off-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom