On Thu, 2007-12-06 at 21:27 -0600, Josh Boyer wrote: > On Thu, 06 Dec 2007 19:00:22 +1100 > Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > > Index: linux-work/arch/powerpc/boot/reg.h > > =================================================================== > > --- linux-work.orig/arch/powerpc/boot/reg.h 2007-12-03 14:26:09.000000000 > > +1100 > > +++ linux-work/arch/powerpc/boot/reg.h 2007-12-03 14:26:09.000000000 > > +1100 > > @@ -24,6 +24,14 @@ static inline u32 mfpvr(void) > > : "=r" (rval)); rval; }) > > #define mtspr(rn, v) asm volatile("mtspr " __stringify(rn) ",%0" : : > > "r" (v)) > > > > +#define __stringify_1(x) #x > > +#define __stringify(x) __stringify_1(x) > > + > > +#define mfspr(rn) ({unsigned long rval; \ > > + asm volatile("mfspr %0," __stringify(rn) \ > > + : "=r" (rval)); rval; }) > > +#define mtspr(rn, v) asm volatile("mtspr " __stringify(rn) ",%0" : : > > "r" (v)) > > + > > You felt like duplicating this? It was added in the previous patch. :)
Want a new patch or can you just remove that bit ? Ben. _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev