[PATCH] powerpc: Disable external interrupts in bootwrapper

David Gibson david at gibson.dropbear.id.au
Wed Mar 28 11:26:22 EST 2007


On Tue, Mar 27, 2007 at 06:03:05PM -0700, Mark A. Greer wrote:
> On Wed, Mar 28, 2007 at 10:28:55AM +1000, Benjamin Herrenschmidt wrote:
> > On Tue, 2007-03-27 at 17:12 -0700, Mark A. Greer wrote:
> > > On Wed, Mar 28, 2007 at 09:43:07AM +1000, Paul Mackerras wrote:
> > > > Mark A. Greer writes:
> > > > 
> > > > > Disable external interrupts very early in the bootwrapper in case
> > > > > the firmware left a device generating interrupts.
> > > > 
> > > > Sounds reasonable, except that I wonder if systems running under a
> > > > real OF want to do this...
> > > 
> > > I don't know.  Would someone who knows OF speak up?
> > 
> > OF isn't supposed to use external interrupts but I wouldn't bet on what
> > Apple's one does... I think it's not safe to do that thus on OF based
> > platforms.
> 
> Hrm...crap.  This may be a case where I need my own crt0.S then.

We could do some more weak symbol magic to make it an option in the
crt0.S, like the BSS stack.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson



More information about the Linuxppc-dev mailing list