summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorzijun_hu <zijun_hu@htc.com>2017-09-22 06:39:13 (GMT)
committerTom Rini <trini@konsulko.com>2017-10-08 20:19:56 (GMT)
commit01a835998935b78c31e80227358ac11212d60878 (patch)
tree9dcb150319ba00dcbc78b954af4570573de0824f /lib
parent0d3aaa35b87573c229d65bc79050ab13f39d8ec2 (diff)
downloadu-boot-01a835998935b78c31e80227358ac11212d60878.tar.xz
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c
index b04f7c6..f4f1bb8 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;
}