Messages in this thread Patch in this message | | | From | Andi Kleen <> | Subject | [PATCH] [2/3] Use the fancy DECLARE_EAX_EDX macros for rdtscp too | Date | Tue, 7 Oct 2008 13:43:13 +0200 (CEST) |
| |
rdtscp was the only function to not use them.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Index: linux-2.6.27-rc4-misc/include/asm-x86/msr.h =================================================================== --- linux-2.6.27-rc4-misc.orig/include/asm-x86/msr.h +++ linux-2.6.27-rc4-misc/include/asm-x86/msr.h @@ -34,10 +34,10 @@ static inline unsigned long long native_read_tscp(unsigned int *aux) { - unsigned long low, high; - asm volatile(".byte 0x0f,0x01,0xf9" - : "=a" (low), "=d" (high), "=c" (*aux)); - return low | ((u64)high << 32); + DECLARE_ARGS(val, low, high); + asm volatile(".byte 0x0f,0x01,0xf9" : + EAX_EDX_RET(val, low, high), "=c" (*aux)); + return EAX_EDX_VAL(val, low, high); } static inline unsigned long long native_read_msr(unsigned int msr)
| |