diff options
author | Simon Glass <sjg@chromium.org> | 2015-05-13 21:15:21 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-05-14 06:57:23 -0400 |
commit | ce49e79450ce4889616d4ee079a7963aa59f183c (patch) | |
tree | d403f965d35c81c2f17fac2a26ddae6bcdd5fc5d /common/spl | |
parent | bd328eb38274ffaf04caaa8a6ecc09b7e19a650e (diff) | |
download | u-boot-ce49e79450ce4889616d4ee079a7963aa59f183c.zip u-boot-ce49e79450ce4889616d4ee079a7963aa59f183c.tar.gz u-boot-ce49e79450ce4889616d4ee079a7963aa59f183c.tar.bz2 |
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.
Reported-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/spl')
-rw-r--r-- | common/spl/spl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |