fix x64 definition of __readmsr()

svn path=/trunk/; revision=37865
This commit is contained in:
Timo Kreuzer
2008-12-05 12:00:39 +00:00
parent 7366e052b4
commit 8156dcd959

View File

@@ -1233,7 +1233,7 @@ static __inline__ __attribute__((always_inline)) unsigned long long __readmsr(co
#ifdef _M_AMD64
unsigned long low, high;
__asm__ __volatile__("rdmsr" : "=a" (low), "=d" (high) : "c" (reg));
return (high << 32) | low;
return ((unsigned long long)high << 32) | low;
#else
unsigned long long retval;
__asm__ __volatile__("rdmsr" : "=A" (retval) : "c" (reg));