X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fspl%2Fspl.c;h=aeb0645eda47d668f64a083f2b65de9bb8064ed7;hb=1ec264695f746dd033a14762344aefff0aa3e3b5;hp=690c9b04ff2e16ac06d498aaf56e71e50c8251ed;hpb=536266231a340c0c5e571e1012bf3f8fc835b251;p=u-boot diff --git a/common/spl/spl.c b/common/spl/spl.c index 690c9b04ff..aeb0645eda 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));