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>
This commit is contained in:
Jonathan A. Kollasch 2012-04-08 11:32:34 -05:00 committed by Stefan Reinauer
parent f42c377fed
commit 14233a0811
1 changed files with 1 additions and 1 deletions

View File

@ -91,8 +91,8 @@ static inline unsigned int cpuid_ebx(unsigned int op)
__asm__("mov %%ebx, %%edi;" __asm__("mov %%ebx, %%edi;"
"cpuid;" "cpuid;"
"mov %%ebx, %%esi;"
"mov %%edi, %%ebx;" "mov %%edi, %%ebx;"
"mov %%edi, %%esi;"
: "=a" (eax), "=S" (ebx) : "=a" (eax), "=S" (ebx)
: "0" (op) : "0" (op)
: "ecx", "edx", "edi"); : "ecx", "edx", "edi");