From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mitch Bradley Subject: Re: Alignment of mixed-data type items in properties Date: Mon, 08 Nov 2010 19:09:49 -1000 Message-ID: <4CD8D79D.6080708@firmworks.com> References: <20101109010709.GA10639@dvomlehn-lnx2.corp.sa.net> <20101109012845.GC30378@yookeroo> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20101109012845.GC30378@yookeroo> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: David Gibson Cc: Device Tree Mailing List List-Id: devicetree@vger.kernel.org The reason for not aligning in Open Firmware property values because I got tired of having to fix structures that needed different padding when moving to different systems. I just decided to dispense with alignment, constructing property values with serialization functions and reading them with deserialization functions. People often get away with structure-based property access techniques, but the "official model" is based on a byte stream of concatenated elements with no internal alignment. Mitch Bradley