projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
spl: Correct address in spl_relocate_stack_gd()
[oweals/u-boot.git]
/
common
/
spl
/
spl.c
diff --git
a/common/spl/spl.c
b/common/spl/spl.c
index 690c9b04ff2e16ac06d498aaf56e71e50c8251ed..aeb0645eda47d668f64a083f2b65de9bb8064ed7 100644
(file)
--- 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));