LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Jike Song" <albcamus@gmail.com>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: gcosta@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: questions about rd{msr|tsc|pmc} instruction with x86-64
Date: Fri, 17 Oct 2008 00:31:18 +0800	[thread overview]
Message-ID: <df9815e70810160931s86c9058rc18d426ce278aa30@mail.gmail.com> (raw)
In-Reply-To: <48F6E1A7.2070602@zytor.com>

On Thu, Oct 16, 2008 at 2:39 PM, H. Peter Anvin <hpa@zytor.com> 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

  reply	other threads:[~2008-10-16 16:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-16  6:30 Jike Song
2008-10-16  6:39 ` H. Peter Anvin
2008-10-16 16:31   ` Jike Song [this message]
     [not found]     ` <48F76FA3.1000602@zytor.com>
2008-10-17  5:25       ` Jike Song
2008-10-20 13:47         ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=df9815e70810160931s86c9058rc18d426ce278aa30@mail.gmail.com \
    --to=albcamus@gmail.com \
    --cc=gcosta@redhat.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: questions about rd{msr|tsc|pmc} instruction with x86-64' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).