[PATCH 23/25] powerpc: Rework 4xx clock probing in boot wrapper

Benjamin Herrenschmidt benh at kernel.crashing.org
Sun Dec 9 18:05:43 EST 2007


On Thu, 2007-12-06 at 21:27 -0600, Josh Boyer wrote:
> On Thu, 06 Dec 2007 19:00:22 +1100
> Benjamin Herrenschmidt <benh at kernel.crashing.org> 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. :)

Ah yes, it's a typical mistake when splitting patches, sometimes, it
doesn't complain when the same hunk is applied multiple times. I'll fix
that up.

Ben.
 




More information about the Linuxppc-dev mailing list