wbemprox: Implement MSVC version of do_cpuid.

This commit is contained in:
Thomas Faber 2015-02-22 21:20:25 +01:00 committed by Alexandre Julliard
parent 00b2461ba9
commit b7664e603b
1 changed files with 4 additions and 0 deletions

View File

@ -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 )