include: Implement __cpuidex() function.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
22f4b6fcf5
commit
0e544824f5
|
@ -12,9 +12,13 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
static inline void __cpuidex(int info[4], int ax, int cx)
|
||||
{
|
||||
__asm__ ("cpuid" : "=a"(info[0]), "=b" (info[1]), "=c"(info[2]), "=d"(info[3]) : "a"(ax), "c"(cx));
|
||||
}
|
||||
static inline void __cpuid(int info[4], int ax)
|
||||
{
|
||||
__asm__ ("cpuid" : "=a"(info[0]), "=b" (info[1]), "=c"(info[2]), "=d"(info[3]) : "a"(ax), "c"(0));
|
||||
return __cpuidex(info, ax, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue