diff options
author | zijun_hu <zijun_hu@htc.com> | 2017-09-22 14:39:13 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-10-08 16:19:56 -0400 |
commit | 01a835998935b78c31e80227358ac11212d60878 (patch) | |
tree | 9dcb150319ba00dcbc78b954af4570573de0824f /lib | |
parent | 0d3aaa35b87573c229d65bc79050ab13f39d8ec2 (diff) | |
download | u-boot-01a835998935b78c31e80227358ac11212d60878.tar.gz |
ARMv8: get new GD address from gd->new_gd directly
the new GD address is calculated via board data BD currently
it require the new GD area locates below BD tightly, so a strict
constraint is imposed on memory layout which maybe make special
platform unpleasant.
fix it by getting new GD address from gd->new_gd directly.
Signed-off-by: zijun_hu <zijun_hu@htc.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asm-offsets.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c index b04f7c6297..f4f1bb8ffd 100644 --- a/lib/asm-offsets.c +++ b/lib/asm-offsets.c @@ -38,5 +38,7 @@ int main(void) DEFINE(GD_START_ADDR_SP, offsetof(struct global_data, start_addr_sp)); + DEFINE(GD_NEW_GD, offsetof(struct global_data, new_gd)); + return 0; } |