[PATCH 03/17] bootwrapper: Add xlate_reg(), and use it to find serial registers.

Scott Wood scottwood at freescale.com
Thu Mar 22 03:01:12 EST 2007


On Wed, Mar 21, 2007 at 02:49:30PM +0100, Segher Boessenkool wrote:
> I didn't look at the actual code but it should be really
> small; I hope it doesn't copy the Linux code with its
> millions of workarounds for broken device trees -- we
> should insist on correct trees, or even just fix them
> if they *are* broken ;-)

It's around 1700 bytes.  Most of the complexity is for dealing with
different #address-cells and #size-cells -- if we could assume a max of 2
for each, then it could be simplified quite a bit by using u64 instead of
arrays.  However, that wouldn't work with PCI, which has 3 address cells.

-Scott



More information about the Linuxppc-dev mailing list