On 2/1/08, Grant Likely <[EMAIL PROTECTED]> wrote: > From: Grant Likely <[EMAIL PROTECTED]> > > This target produces a flat binary rather than an ELF file, > fixes the entry point at the beginning of the image, and takes > a complete device tree with no fixups needed. > > Based on 'raw' target written by Scott Wood. > > Signed-off-by: Grant Likely <[EMAIL PROTECTED]> > --- > diff --git a/arch/powerpc/boot/io.h b/arch/powerpc/boot/io.h > index ccaedae..ec57ec9 100644 > --- a/arch/powerpc/boot/io.h > +++ b/arch/powerpc/boot/io.h > @@ -99,4 +99,11 @@ static inline void barrier(void) > asm volatile("" : : : "memory"); > } > > +static inline void disable_irq(void) > +{ > + int dummy; > + asm volatile("mfmsr %0; rlwinm %0, %0, 0, ~(1<<15); mtmsr %0" : > + "=r" (dummy) : : "memory"); > +} > + > #endif /* _IO_H */
Oops, ignore this bit. This is leftover cruft from the original patch. I've now removed it. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev