Skip to contentSkip to conversation

spl: Correct address in spl_relocate_stack_gd()

PATCH New Simon Glass 2 participants 2 messages May 14, 2015

lore
Share & tools
lore
#0 lore raw

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.

---

 common/spl/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/spl/spl.c +1 -1
index 690c9b0..aeb0645 100644
@@ -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
#1 lore raw

PATCH 1/1 spl: Correct address in spl_relocate_stack_gd()

Quoted 6 lines · Simon Glass

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.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom