Commit 8f3e1df4 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Ingo Molnar

x86, ioapic: Define IO_APIC_DEFAULT_PHYS_BASE constant

We already have APIC_DEFAULT_PHYS_BASE so just to be
consistent.
Signed-off-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
LKML-Reference: <20090824175550.927946757@openvz.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 005155b1
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
* Ingo Molnar <mingo@redhat.com>, 1999, 2000 * 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 #define APIC_ID 0x20
......
...@@ -482,11 +482,11 @@ static void __init construct_ioapic_table(int mpc_default_type) ...@@ -482,11 +482,11 @@ static void __init construct_ioapic_table(int mpc_default_type)
MP_bus_info(&bus); MP_bus_info(&bus);
} }
ioapic.type = MP_IOAPIC; ioapic.type = MP_IOAPIC;
ioapic.apicid = 2; ioapic.apicid = 2;
ioapic.apicver = mpc_default_type > 4 ? 0x10 : 0x01; ioapic.apicver = mpc_default_type > 4 ? 0x10 : 0x01;
ioapic.flags = MPC_APIC_USABLE; ioapic.flags = MPC_APIC_USABLE;
ioapic.apicaddr = 0xFEC00000; ioapic.apicaddr = IO_APIC_DEFAULT_PHYS_BASE;
MP_ioapic_info(&ioapic); MP_ioapic_info(&ioapic);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment