Devicetree
 help / color / mirror / Atom feed
From: Mitch Bradley <wmb-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
To: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
Cc: Device Tree Mailing List
	<devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>
Subject: Re: Alignment of mixed-data type items in properties
Date: Mon, 08 Nov 2010 19:09:49 -1000	[thread overview]
Message-ID: <4CD8D79D.6080708@firmworks.com> (raw)
In-Reply-To: <20101109012845.GC30378@yookeroo>

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

      reply	other threads:[~2010-11-09  5:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-09  1:07 Alignment of mixed-data type items in properties David VomLehn
     [not found] ` <20101109010709.GA10639-ZEW99E7oL/EiWxQNNj96ibh/4TqKg8J2XqFh9Ls21Oc@public.gmane.org>
2010-11-09  1:28   ` David Gibson
2010-11-09  5:09     ` Mitch Bradley [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CD8D79D.6080708@firmworks.com \
    --to=wmb-d5eqfidgl7eakbo8gow8eq@public.gmane.org \
    --cc=david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox