mirror of
https://github.com/reactos/wine.git
synced 2025-02-27 08:15:36 +00:00
wbemprox: Implement MSVC version of do_cpuid.
This commit is contained in:
parent
00b2461ba9
commit
b7664e603b
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user