MTRR: get physical address size from CPUID
[coreboot.git] / src / cpu / via / model_c7 / model_c7_init.c
index 5474b8d6c788766697683592b12f16de61cef778..585f7494b8ce6fce90391333c1f004e76cd57bd5 100644 (file)
 #include <console/console.h>
 #include <delay.h>
 #include <stdlib.h>
-
 #include <cpu/cpu.h>
 #include <cpu/x86/mtrr.h>
 #include <cpu/x86/msr.h>
 #include <cpu/x86/lapic.h>
 #include <cpu/x86/cache.h>
-#include <cpu/x86/mtrr.h>
 
 #define MSR_IA32_PERF_STATUS   0x00000198
 #define MSR_IA32_PERF_CTL      0x00000199
@@ -204,7 +202,7 @@ static void model_c7_init(device_t dev)
        x86_enable_cache();
 
        /* Set up Memory Type Range Registers */
-       x86_setup_mtrrs(36);
+       x86_setup_mtrrs();
        x86_mtrr_check();
 
        /* Enable the local cpu apics */
@@ -215,7 +213,7 @@ static struct device_operations cpu_dev_ops = {
        .init = model_c7_init,
 };
 
-/* Look in arch/i386/lib/cpu.c:cpu_initialize. If there is no CPU with an exact
+/* Look in arch/x86/lib/cpu.c:cpu_initialize. If there is no CPU with an exact
  * ID, the cpu mask (stepping) is masked out and the check is repeated. This
  * allows us to keep the table significantly smaller.
  */