From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 65EB3DDE00 for ; Mon, 10 Dec 2007 16:44:07 +1100 (EST) Subject: Re: [PATCH 23/25] powerpc: Rework 4xx clock probing in boot wrapper From: Benjamin Herrenschmidt To: Josh Boyer In-Reply-To: <20071206212744.7257f1a2@zod.rchland.ibm.com> References: <1196927999.714593.205329520306.qpush@grosgo> <20071206080133.D24A9DE136@ozlabs.org> <20071206212744.7257f1a2@zod.rchland.ibm.com> Content-Type: text/plain Date: Mon, 10 Dec 2007 16:43:31 +1100 Message-Id: <1197265411.6563.56.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2007-12-06 at 21:27 -0600, Josh Boyer wrote: > On Thu, 06 Dec 2007 19:00:22 +1100 > Benjamin Herrenschmidt 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.