[coreboot] New patch to review for coreboot: b55e2f4 Actually return %ebx value from cpuid_ebx()

Jonathan A. Kollasch (jakllsch@kollasch.net) gerrit at coreboot.org
Sun Apr 8 18:33:10 CEST 2012


Jonathan A. Kollasch (jakllsch at kollasch.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/880

-gerrit

commit b55e2f4611720891e645c719b1ec040ae00f88b0
Author: Jonathan A. Kollasch <jakllsch at kollasch.net>
Date:   Sun Apr 8 11:32:34 2012 -0500

    Actually return %ebx value from cpuid_ebx()
    
    Change-Id: I75f8f942950cad94439a10e389490ecfdd9272fe
    Signed-off-by: Jonathan A. Kollasch <jakllsch at kollasch.net>
---
 src/arch/x86/include/arch/cpu.h |    2 +-
 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 604abde..fc03c85 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");




More information about the coreboot mailing list