[Crosstoolchain-logs] [device-tree-compiler] 110/357: dtc: fix asm for version 17

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:05:56 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit 81fda8a6f1cabbd9c08e27d3171394f7f90f7d3a
Author: Milton Miller <miltonm at bga.com>
Date:   Sat Jul 7 01:18:47 2007 -0500

    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 at bga.com>
---
 flattree.c | 4 ++++
 1 file changed, 4 insertions(+)

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.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list