* [U-Boot] [PATCH] spl: Correct address in spl_relocate_stack_gd()
@ 2015-05-14 3:15 Simon Glass
2015-05-14 10:58 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Simon Glass @ 2015-05-14 3:15 UTC (permalink / raw)
To: u-boot
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 <sjg@chromium.org>
---
common/spl/spl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 690c9b0..aeb0645 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -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));
--
2.2.0.rc0.207.ga3a616c
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] spl: Correct address in spl_relocate_stack_gd()
2015-05-14 3:15 [U-Boot] [PATCH] spl: Correct address in spl_relocate_stack_gd() Simon Glass
@ 2015-05-14 10:58 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2015-05-14 10:58 UTC (permalink / raw)
To: u-boot
On Wed, May 13, 2015 at 09:15:21PM -0600, Simon Glass wrote:
> 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.
>
> Reported-by: Tim Harvey <tharvey@gateworks.com>
> Signed-off-by: Simon Glass <sjg@chromium.org>
Applied to u-boot/master, thanks!
--
Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-14 10:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-14 3:15 [U-Boot] [PATCH] spl: Correct address in spl_relocate_stack_gd() Simon Glass
2015-05-14 10:58 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).