From 14233a08114895cad9e419b9ee67290010e65ea9 Mon Sep 17 00:00:00 2001 From: "Jonathan A. Kollasch" Date: Sun, 8 Apr 2012 11:32:34 -0500 Subject: Actually return %ebx value from cpuid_ebx() Change-Id: I75f8f942950cad94439a10e389490ecfdd9272fe Signed-off-by: Jonathan A. Kollasch Reviewed-on: http://review.coreboot.org/880 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/arch/x86/include/arch/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3