Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266097AbUA1Pse (ORCPT ); Wed, 28 Jan 2004 10:48:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266053AbUA1Pr0 (ORCPT ); Wed, 28 Jan 2004 10:47:26 -0500 Received: from palrel13.hp.com ([156.153.255.238]:19109 "EHLO palrel13.hp.com") by vger.kernel.org with ESMTP id S266066AbUA1Pm7 (ORCPT ); Wed, 28 Jan 2004 10:42:59 -0500 From: David Mosberger MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16407.55422.229863.840323@napali.hpl.hp.com> Date: Wed, 28 Jan 2004 07:42:54 -0800 To: Hironobu Ishii Cc: linux-kernel , linux-ia64 Subject: Re: [RFC/PATCH, 3/4] readX_check() performance evaluation In-Reply-To: <00a401c3e541$c1d347f0$2987110a@lsd.css.fujitsu.com> References: <00a401c3e541$c1d347f0$2987110a@lsd.css.fujitsu.com> X-Mailer: VM 7.17 under Emacs 21.3.1 Reply-To: davidm@hpl.hp.com X-URL: http://www.hpl.hp.com/personal/David_Mosberger/ Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1250 Lines: 33 >>>>> On Wed, 28 Jan 2004 10:54:42 +0900, Hironobu Ishii said: Hironobu> This is a patch for rawread 1.0.3. Hironobu> Original rawread 1.0.3 depends on i386. Hironobu> --- rawread.c.old 2004-01-22 19:33:43.000000000 +0900 Hironobu> +++ rawread.c 2004-01-27 23:26:24.406717936 +0900 Hironobu> @@ -94,8 +94,14 @@ Hironobu> __inline__ unsigned long long int rdtsc() Hironobu> { Hironobu> - unsigned long long int x; Hironobu> - __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x)); Hironobu> + unsigned long long int x; Hironobu> +#if __i386__ Hironobu> + __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x)); Hironobu> +#elif __ia64__ Hironobu> + __asm__ volatile ("mov r8 = ar44"); Hironobu> +#else Hironobu> + #error "Please write your own rdtsc()" Hironobu> +#endif Hironobu> return x; Hironobu> } Inline assembly doesn't work with the Intel compiler on ia64. I suggest to use ia64_get_itc() defined in instead. --david - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/