Move C labels to start-of-line
[coreboot.git] / src / arch / x86 / lib / cpu.c
index aaa0a161853f51a81aae13da66b7b0a24e7838d5..a7f7b322c003f8b0fff26d1a417b67d7da6348fb 100644 (file)
@@ -144,10 +144,10 @@ int cpu_phys_address_size(void)
        if (!(have_cpuid_p()))
                return 32;
 
-       if (cpu_cpuid_extended_level() > 0x80000008)
+       if (cpu_cpuid_extended_level() >= 0x80000008)
                return cpuid_eax(0x80000008) & 0xff;
 
-       if (cpuid_eax(1) & (CPUID_FEATURE_PAE | CPUID_FEATURE_PSE36))
+       if (cpuid_edx(1) & (CPUID_FEATURE_PAE | CPUID_FEATURE_PSE36))
                return 36;
        return 32;
 }
@@ -227,7 +227,7 @@ static void set_cpu_ops(struct device *cpu)
                }
        }
        return;
- found:
+found:
        cpu->ops = driver->ops;
 }