[PATCH] powerpc: Disable external interrupts in bootwrapper
Mark A. Greer
mgreer at mvista.com
Wed Mar 28 10:12:15 EST 2007
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?
> > + li r9,(1<<15)@l /* Disable external intrs (clear MSR[EE]) */
>
> That will actually get us ffff8000 in r9.
Oops.
> > + mfmsr r10
> > + andc r10,r10,r9
>
> I suggest this sequence instead:
>
> mfmsr r10
> rlwinm r10,r10,0,~(1<<15) /* clear MSR_EE */
That works. Respin in a bit.
Thanks,
Mark
More information about the Linuxppc-dev
mailing list