aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/redhat-support-check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redhat-support-check.c b/src/redhat-support-check.c
index 03b91a6a..e115b57f 100644
--- a/src/redhat-support-check.c
+++ b/src/redhat-support-check.c
@@ -49,7 +49,7 @@ static inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx)
#if defined(__x86_64__)
static inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx)
{
- __asm__("cpuid"
+ __asm__("xchgl %%ebx, %1; cpuid; xchgl %%ebx, %1"
: "=a"(*eax), "=r"(*ebx), "=c"(*ecx), "=d"(*edx)
: "0" (op));
}