From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.lixom.net (lixom.net [66.141.50.11]) by ozlabs.org (Postfix) with ESMTP id 8F23467B8B for ; Fri, 20 Oct 2006 11:57:05 +1000 (EST) Date: Thu, 19 Oct 2006 20:56:20 -0500 From: Olof Johansson To: Benjamin Herrenschmidt Subject: Re: [PATCH 5/5] powerpc: Cell timebase bug workaround Message-ID: <20061019205620.2658cbfd@pb15> In-Reply-To: <1161308840.10524.112.camel@localhost.localdomain> References: <1161308840.10524.112.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev list , Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 20 Oct 2006 11:47:20 +1000 Benjamin Herrenschmidt wrote: > static inline unsigned int get_tbu(void) > { > +#ifdef CONFIG_403GCX > unsigned int tbu; > - > -#if defined(CONFIG_403GCX) > asm volatile("mfspr %0, 0x3dc" : "=r" (tbu)); > + return tbu; > +#elif defined(CONFIG_PPC32) > + return mftbu(); > #else > - asm volatile("mftbu %0" : "=r" (tbu)); > + return mftb(); > #endif > - return tbu; > } > Shouldn't the last one be mftbu(), since that's what the asm used to do? -Olof