summaryrefslogtreecommitdiff
path: root/flattree.c
diff options
context:
space:
mode:
authorMilton Miller <miltonm@bga.com>2007-07-07 01:18:47 -0500
committerJon Loeliger <jdl@freescale.com>2007-07-07 10:07:04 -0500
commit81fda8a6f1cabbd9c08e27d3171394f7f90f7d3a (patch)
tree45fd194adb9a9a64a391b85c28bfb9f20b7057cc /flattree.c
parent8cd4196ee3a9cc3d345f40f93e0a5f4493ce2d82 (diff)
downloaddtc-81fda8a6f1cabbd9c08e27d3171394f7f90f7d3a.tar.gz
dtc: fix asm for version 17
The version 17 flat device tree format added struct size. When writing version 17 assembly output the field must be emitted. Signed-off-by: Milton Miller <miltonm@bga.com>
Diffstat (limited to 'flattree.c')
-rw-r--r--flattree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/flattree.c b/flattree.c
index 68ada2f..a6b66e7 100644
--- a/flattree.c
+++ b/flattree.c
@@ -477,6 +477,10 @@ void dt_to_asm(FILE *f, struct boot_info *bi, int version, int boot_cpuid_phys)
fprintf(f, "\t.long\t_%s_strings_end - _%s_strings_start\t/* size_dt_strings */\n",
symprefix, symprefix);
+ if (vi->flags & FTF_STRUCTSIZE)
+ fprintf(f, "\t.long\t_%s_struct_end - _%s_struct_start\t/* size_dt_struct */\n",
+ symprefix, symprefix);
+
/*
* Reserve map entries.
* Align the reserve map to a doubleword boundary.