1 #include <console/console.h>
2 #include <device/device.h>
3 #include <device/pci.h>
6 #include <cpu/x86/mtrr.h>
7 #include <cpu/x86/msr.h>
8 #include <cpu/x86/lapic.h>
9 #include <cpu/intel/microcode.h>
10 #include <cpu/intel/hyperthreading.h>
11 #include <cpu/x86/cache.h>
14 static uint32_t microcode_updates[] = {
15 /* WARNING - Intel has a new data structure that has variable length
16 * microcode update lengths. They are encoded in int 8 and 9. A
17 * dummy header of nulls must terminate the list.
19 #include "microcode_m02f2203.h"
20 #include "microcode_m02f2410.h"
21 //#include "microcode_m02f2728.h"
22 #include "microcode_m02f2734.h"
23 #include "microcode_m02f2918.h"
24 /* Dummy terminator */
31 static void model_f2x_init(device_t cpu)
33 /* Turn on caching if we haven't already */
38 /* Update the microcode */
39 intel_update_microcode(microcode_updates);
41 /* Enable the local cpu apics */
44 /* Start up my cpu siblings */
45 intel_sibling_init(cpu);
48 static struct device_operations cpu_dev_ops = {
49 .init = model_f2x_init,
52 static struct cpu_device_id cpu_table[] = {
53 { X86_VENDOR_INTEL, 0x0f22 },
54 { X86_VENDOR_INTEL, 0x0f24 },
55 { X86_VENDOR_INTEL, 0x0f27 },
56 { X86_VENDOR_INTEL, 0x0f29 },
57 // { X86_VENDOR_INTEL, 0x0f25 }, /* I don't have a microcode update for this cpu */
61 static const struct cpu_driver driver __cpu_driver = {
63 .id_table = cpu_table,