x86, ioapic: Define IO_APIC_DEFAULT_PHYS_BASE constant
authorCyrill Gorcunov <gorcunov@openvz.org>
Mon, 24 Aug 2009 17:53:36 +0000 (21:53 +0400)
committerIngo Molnar <mingo@elte.hu>
Wed, 26 Aug 2009 06:16:38 +0000 (08:16 +0200)
We already have APIC_DEFAULT_PHYS_BASE so just to be
consistent.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
LKML-Reference: <20090824175550.927946757@openvz.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/apicdef.h
arch/x86/kernel/mpparse.c

index 7ddb36a..7386bfa 100644 (file)
@@ -8,7 +8,8 @@
  * Ingo Molnar <mingo@redhat.com>, 1999, 2000
  */
 
-#define        APIC_DEFAULT_PHYS_BASE  0xfee00000
+#define IO_APIC_DEFAULT_PHYS_BASE      0xfec00000
+#define        APIC_DEFAULT_PHYS_BASE          0xfee00000
 
 #define        APIC_ID         0x20
 
index 651c93b..fcd513b 100644 (file)
@@ -482,11 +482,11 @@ static void __init construct_ioapic_table(int mpc_default_type)
                MP_bus_info(&bus);
        }
 
-       ioapic.type = MP_IOAPIC;
-       ioapic.apicid = 2;
-       ioapic.apicver = mpc_default_type > 4 ? 0x10 : 0x01;
-       ioapic.flags = MPC_APIC_USABLE;
-       ioapic.apicaddr = 0xFEC00000;
+       ioapic.type     = MP_IOAPIC;
+       ioapic.apicid   = 2;
+       ioapic.apicver  = mpc_default_type > 4 ? 0x10 : 0x01;
+       ioapic.flags    = MPC_APIC_USABLE;
+       ioapic.apicaddr = IO_APIC_DEFAULT_PHYS_BASE;
        MP_ioapic_info(&ioapic);
 
        /*