Thomas Faber : wbemprox: Implement MSVC version of do_cpuid.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Feb 23 09:04:44 CST 2015
Module: wine
Branch: master
Commit: b7664e603bd6f937542c260ad2d35742c77c6293
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b7664e603bd6f937542c260ad2d35742c77c6293
Author: Thomas Faber <thomas.faber at reactos.org>
Date: Sun Feb 22 21:20:25 2015 +0100
wbemprox: Implement MSVC version of do_cpuid.
---
dlls/wbemprox/builtin.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index e9c95ac..3548c61 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -2074,6 +2074,9 @@ done:
static inline void do_cpuid( unsigned int ax, unsigned int *p )
{
#ifdef __i386__
+#ifdef _MSC_VER
+ __cpuid(p, ax);
+#else
__asm__("pushl %%ebx\n\t"
"cpuid\n\t"
"movl %%ebx, %%esi\n\t"
@@ -2081,6 +2084,7 @@ static inline void do_cpuid( unsigned int ax, unsigned int *p )
: "=a" (p[0]), "=S" (p[1]), "=c" (p[2]), "=d" (p[3])
: "0" (ax));
#endif
+#endif
}
static void get_processor_id( WCHAR *processor_id )
More information about the wine-cvs
mailing list