From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 18 Jul 2007 11:56:23 +1000 From: David Gibson To: Milton Miller Subject: Re: [PATCH 01/11] dtc: fix asm for version 17 Message-ID: <20070718015623.GC18251@localhost.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: linuxppc-dev@ozlabs.org, Jon Loeliger List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat, Jul 07, 2007 at 01:18:47AM -0500, Milton Miller wrote: > The version 17 flat device tree format added struct size. When > writing versin 17 assembly output the field must be emitted. > > Signed-off-by: Milton Miller > --- > Found when trying to parse the binary from the assembled output. Oops, good catch. > > Index: dtc/flattree.c > =================================================================== > --- dtc.orig/flattree.c 2007-06-14 22:56:59.000000000 -0500 > +++ dtc/flattree.c 2007-06-14 22:59:00.000000000 -0500 > @@ -477,6 +477,10 @@ void dt_to_asm(FILE *f, struct boot_info > 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. > _______________________________________________ > Linuxppc-dev mailing list > Linuxppc-dev@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-dev > -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson