Commit b7664e60 authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

wbemprox: Implement MSVC version of do_cpuid.

parent 00b2461b
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment