git: mptable: Assign index for each IOAPIC
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Thu Mar 3 06:45:17 PST 2011
commit 6b881b58c506886dea35c08ea7162676f639b86f
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Thu Mar 3 22:14:40 2011 +0800
mptable: Assign index for each IOAPIC
IOAPIC information is saved into list ordered by ascending order
of IOAPIC's APIC ID and each IOAPIC is assigned an index according
to the order.
In this way we could use IOAPIC information extracted from ACPI
MADT and MPTABLE in the same fashion when routing PCI interrupts,
i.e. using index instead of APIC ID. It has been observed that on
some machines, the APIC ID of IOAPIC in ACPI MADT is different from
the one in MPTABLE, but the order (index) is same.
PCI interrupt routing information now saves IOAPIC's index instead
of IOAPIC's APIC ID.
Summary of changes:
sys/platform/pc32/i386/mp_machdep.c | 247 +++++++++++++++++++++++----------
sys/platform/pc64/x86_64/mp_machdep.c | 247 +++++++++++++++++++++++----------
2 files changed, 352 insertions(+), 142 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6b881b58c506886dea35c08ea7162676f639b86f
--
DragonFly BSD source repository
More information about the Commits
mailing list