From 8156dcd959f744d012fa620a41f77fbbca9ea771 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Fri, 5 Dec 2008 12:00:39 +0000 Subject: [PATCH] fix x64 definition of __readmsr() svn path=/trunk/; revision=37865 --- reactos/include/crt/mingw32/intrin_x86.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/include/crt/mingw32/intrin_x86.h b/reactos/include/crt/mingw32/intrin_x86.h index ea5476c429d..a2c7e0e44ae 100644 --- a/reactos/include/crt/mingw32/intrin_x86.h +++ b/reactos/include/crt/mingw32/intrin_x86.h @@ -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));