Author: tkreuzer
Date: Fri Dec 5 06:00:39 2008
New Revision: 37865
URL:
http://svn.reactos.org/svn/reactos?rev=37865&view=rev
Log:
fix x64 definition of __readmsr()
Modified:
trunk/reactos/include/crt/mingw32/intrin_x86.h
Modified: trunk/reactos/include/crt/mingw32/intrin_x86.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/crt/mingw32/intrin…
==============================================================================
--- trunk/reactos/include/crt/mingw32/intrin_x86.h [iso-8859-1] (original)
+++ trunk/reactos/include/crt/mingw32/intrin_x86.h [iso-8859-1] Fri Dec 5 06:00:39 2008
@@ -1233,7 +1233,7 @@
#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));