From: David Gibson <david@gibson.dropbear.id.au>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: "linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>
Subject: Re: PATCH: Add memreserve to DTC
Date: Thu, 14 Jul 2005 11:02:46 +1000 [thread overview]
Message-ID: <20050714010246.GC15769@sneetch.ozlabs.ibm.com> (raw)
In-Reply-To: <597c90908e1aae7e7917be736d8901a3@kernel.crashing.org>
On Tue, Jul 12, 2005 at 10:02:16AM +0200, Segher Boessenkool wrote:
> >>> and forcing the user to
> >>>split up these 64-bit quantities into cells is kind of silly.
> >>
> >>Hey, I didn't set that up! :-) There wasn't an existing
> >>clean way to state 64 bit values, and an arbitrary list of
> >>them. So I uh, leveraged the existing cell_t support!
> >
> >Cells make sense for the actual OF-like data, becayse they're an OF
> >concept. For memreserve, which is purely Linux specific, they don't/
>
> No. This is _not_ what is called a cell. "Cell" is a Forth concept.
> A cell can be any size. Open Firmware puts the extra restriction on it
> to be _at least_ 32 bits.
>
> The thing you are referring to is what is called in OF
>
> "32-bit integer property encoding format".
>
> It is defined to always be 32-bit, and not the cell size of the
> firmware,
> so that you can use a 64-bit firmware with a 32-bit OS, and vice versa
> (of course there could be different reasons why this isn't practical,
> but
> that's not the point).
>
> In OF words, this format is normally abbreviated as "int".
My mistake, I misunderstood the terminology. But the basic point is
that lots of things in the kernel already assume a cell is 32-bits, so
it would be silly to try and change that here. This is not true for
the memreserve values.
> Btw -- beware of the fact that such an "int" does _not_ have any
> alignment restrictions -- so you better read it byte by byte...
Erm.. in what context. dtc never reads ints from the blob format as
ints - properties are just byte strings to it. At present you can't
mix cell input format with other sorts, which means the ints must, in
fact, be aligned, since properties are.
--
David Gibson | For every complex problem there is a
david@gibson.dropbear.id.au | solution which is simple, neat and
| wrong.
http://www.ozlabs.org/people/dgibson
next prev parent reply other threads:[~2005-07-14 1:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-08 21:44 PATCH: Add memreserve to DTC Jon Loeliger
2005-07-11 4:55 ` David Gibson
2005-07-11 21:22 ` Jon Loeliger
2005-07-12 2:01 ` David Gibson
2005-07-12 8:02 ` Segher Boessenkool
2005-07-14 1:02 ` David Gibson [this message]
2005-07-14 13:29 ` Segher Boessenkool
2005-07-12 4:06 ` David Gibson
2005-07-14 20:03 ` Jon Loeliger
2005-07-15 7:19 ` David Gibson
2005-07-15 14:30 ` Jon Loeliger
2005-07-19 1:17 ` David Gibson
2005-07-11 6:30 ` David Gibson
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=20050714010246.GC15769@sneetch.ozlabs.ibm.com \
--to=david@gibson.dropbear.id.au \
--cc=linuxppc-dev@ozlabs.org \
--cc=segher@kernel.crashing.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;
as well as URLs for NNTP newsgroup(s).