Unify Local APIC address definitions
[coreboot.git] / src / mainboard / emulation / qemu-x86 / northbridge.c
index 3f2243786da594886e79fdd69095dfbd613dbe54..b961e8b60c78630e7798836afbd83828ce08cda6 100644 (file)
@@ -1,4 +1,5 @@
 #include <console/console.h>
+#include <cpu/x86/lapic_def.h>
 #include <arch/io.h>
 #include <arch/ioapic.h>
 #include <stdint.h>
@@ -80,7 +81,7 @@ static void cpu_pci_domain_read_resources(struct device *dev)
        /* Reserve space for the LAPIC.  There's one in every processor, but
         * the space only needs to be reserved once, so we do it here. */
        res = new_resource(dev, 3);
-       res->base = 0xfee00000UL;
+       res->base = LOCAL_APIC_ADDR;
        res->size = 0x10000UL;
        res->limit = 0xffffffffUL;
        res->flags = IORESOURCE_MEM | IORESOURCE_FIXED | IORESOURCE_STORED |