[PATCH 1/6] bootwrapper: arch/powerpc/boot code reorg

Paul Mackerras paulus at samba.org
Mon Aug 7 16:48:43 EST 2006


Mark A. Greer writes:

> I realize that I didn't really answer your question.  Its at least
> possible that the console driver could not be known at link time.
> 
> An example I used in another email is a platform that has 4 serial
> ports, 2-16550 and 2-mpsc, say.  The /chosen/linux,stdout-path could
> pick any of the four so you would need to compile in a low-level
> serial driver for both and hook the correct one up at runtime.
> 
> Same could be said for a serial vs. video console.

OK, that's reasonable.  Still would be nice not to have to do the
double dereference though.  I think that the platform_ops and the
fw_ops could probably be combined.  Also, an init method for the
platform/fw_ops would be useful - it would let us remove the kludge
you have in the OF malloc implementation.

The OF malloc is currently applying a minimum address constraint for
all platforms, where it used to apply it only for 64-bit platforms.
We need to fix that up somehow too.

Regards,
Paul.




More information about the Linuxppc-dev mailing list