aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/x86/include/arch/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/include/arch/cpu.h b/src/arch/x86/include/arch/cpu.h
index 604abde861..fc03c8549d 100644
--- a/src/arch/x86/include/arch/cpu.h
+++ b/src/arch/x86/include/arch/cpu.h
@@ -91,8 +91,8 @@ static inline unsigned int cpuid_ebx(unsigned int op)
__asm__("mov %%ebx, %%edi;"
"cpuid;"
+ "mov %%ebx, %%esi;"
"mov %%edi, %%ebx;"
- "mov %%edi, %%esi;"
: "=a" (eax), "=S" (ebx)
: "0" (op)
: "ecx", "edx", "edi");