Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754679AbYJPQba (ORCPT ); Thu, 16 Oct 2008 12:31:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752237AbYJPQbV (ORCPT ); Thu, 16 Oct 2008 12:31:21 -0400 Received: from ti-out-0910.google.com ([209.85.142.189]:19767 "EHLO ti-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751132AbYJPQbU (ORCPT ); Thu, 16 Oct 2008 12:31:20 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=YL/HutBVFAmiCSUA5Coj57tzZ7A8ItnmKreJpy5dUY0+PVFmCay9yZSKH5y01eRVL/ pakPd+k+hLdp7wVXK8WUkSQts56669e7WiLLqiqhcyE1GHrMuHPrBPZuzipNeJFVCCLd UpNzMJq7A1sCrioZsij0rldZSVGWoYLbEw9Uk= Message-ID: Date: Fri, 17 Oct 2008 00:31:18 +0800 From: "Jike Song" To: "H. Peter Anvin" Subject: Re: questions about rd{msr|tsc|pmc} instruction with x86-64 Cc: gcosta@redhat.com, linux-kernel@vger.kernel.org In-Reply-To: <48F6E1A7.2070602@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48F6E1A7.2070602@zytor.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 711 Lines: 23 On Thu, Oct 16, 2008 at 2:39 PM, H. Peter Anvin wrote: > Jike Song wrote: >> {snip} > > "A" means rdx:rax on x86-64, not edx:eax. For a 64-bit number, it means, > literally, "one of rdx or rax"! As you correctly point out, this is not how > rdmsr works. > > -hpa > Thanks, Peter! So I misunderstood the gcc constraint 'A' for x86-64, but seems the comment "while x86_64 returns at rax" still wrong, should this be fixed? -- Thanks, Jike -- 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/