aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan A. Kollasch <jakllsch@kollasch.net>2012-04-08 11:32:34 -0500
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-04-08 20:06:58 +0200
commit14233a08114895cad9e419b9ee67290010e65ea9 (patch)
tree8e64dbe17a074dca94c1a0d911472763b356de92 /src
parentf42c377fed076426d1253941361caa4b17df961b (diff)
Actually return %ebx value from cpuid_ebx()
Change-Id: I75f8f942950cad94439a10e389490ecfdd9272fe Signed-off-by: Jonathan A. Kollasch <jakllsch@kollasch.net> Reviewed-on: http://review.coreboot.org/880 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src')
-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");