]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: clean up comments wrt. rd{msr|tsc|pmc}
authorJike Song <albcamus@gmail.com>
Fri, 17 Oct 2008 05:25:07 +0000 (13:25 +0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 28 Oct 2008 15:47:08 +0000 (16:47 +0100)
The rdmsr instruction(et al) for i386 and x86-64 are semantically same.
The only difference is how gcc interpret constraint "A" for these targets.

Signed-off-by: Jike Song <albcamus@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/msr.h

index 46be2fa7ac266c513bfd3221b7f0d861e748238d..478a9245aae137117b3d13240697a5625522c26c 100644 (file)
@@ -22,10 +22,10 @@ static inline unsigned long long native_read_tscp(unsigned int *aux)
 }
 
 /*
- * i386 calling convention returns 64-bit value in edx:eax, while
- * x86_64 returns at rax. Also, the "A" constraint does not really
- * mean rdx:rax in x86_64, so we need specialized behaviour for each
- * architecture
+ * both i386 and x86_64 returns 64-bit value in edx:eax, but gcc's "A"
+ * constraint has different meanings. For i386, "A" means exactly
+ * edx:eax, while for x86_64 it doesn't mean rdx:rax or edx:eax. Instead,
+ * it means rax *or* rdx.
  */
 #ifdef CONFIG_X86_64
 #define DECLARE_ARGS(val, low, high)   unsigned low, high