mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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>
This commit is contained in:
parent
bd328eb382
commit
ce49e79450
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue