[PATCH] powerpc: Disable external interrupts in bootwrapper
Mark A. Greer
mgreer at mvista.com
Wed Mar 28 11:34:01 EST 2007
On Wed, Mar 28, 2007 at 11:26:22AM +1000, David Gibson wrote:
> 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.
Yeah, that would be nice. Other than not clearing MSR[EE], the current
crt0.S is works for me. A little hook or somesuch there would be nice
so I don't have to duplicate the rest of crt0.S.
Mark
More information about the Linuxppc-dev
mailing list