summaryrefslogtreecommitdiff
path: root/src/arch/x86/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/cpu.c')
-rw-r--r--src/arch/x86/cpu.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/arch/x86/cpu.c b/src/arch/x86/cpu.c
index e53390f45d..4b8275939c 100644
--- a/src/arch/x86/cpu.c
+++ b/src/arch/x86/cpu.c
@@ -93,7 +93,7 @@ static int deep_magic_nexgen_probe(void)
" jnz 1f\n"
" movl $1, %%eax\n"
"1:\n"
- : "=a" (ret) : : "cx", "dx" );
+ : "=a" (ret) : : "cx", "dx");
return ret;
}
#endif
@@ -168,17 +168,17 @@ static void identify_cpu(struct device *cpu)
int cpuid_level;
struct cpuid_result result;
result = cpuid(0x00000000);
- cpuid_level = result.eax;
- vendor_name[ 0] = (result.ebx >> 0) & 0xff;
- vendor_name[ 1] = (result.ebx >> 8) & 0xff;
- vendor_name[ 2] = (result.ebx >> 16) & 0xff;
- vendor_name[ 3] = (result.ebx >> 24) & 0xff;
- vendor_name[ 4] = (result.edx >> 0) & 0xff;
- vendor_name[ 5] = (result.edx >> 8) & 0xff;
- vendor_name[ 6] = (result.edx >> 16) & 0xff;
- vendor_name[ 7] = (result.edx >> 24) & 0xff;
- vendor_name[ 8] = (result.ecx >> 0) & 0xff;
- vendor_name[ 9] = (result.ecx >> 8) & 0xff;
+ cpuid_level = result.eax;
+ vendor_name[0] = (result.ebx >> 0) & 0xff;
+ vendor_name[1] = (result.ebx >> 8) & 0xff;
+ vendor_name[2] = (result.ebx >> 16) & 0xff;
+ vendor_name[3] = (result.ebx >> 24) & 0xff;
+ vendor_name[4] = (result.edx >> 0) & 0xff;
+ vendor_name[5] = (result.edx >> 8) & 0xff;
+ vendor_name[6] = (result.edx >> 16) & 0xff;
+ vendor_name[7] = (result.edx >> 24) & 0xff;
+ vendor_name[8] = (result.ecx >> 0) & 0xff;
+ vendor_name[9] = (result.ecx >> 8) & 0xff;
vendor_name[10] = (result.ecx >> 16) & 0xff;
vendor_name[11] = (result.ecx >> 24) & 0xff;
vendor_name[12] = '\0';