git: mptable: Assign index for each IOAPIC

看板DFBSD_commit作者時間15年前 (2011/03/04 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 6b881b58c506886dea35c08ea7162676f639b86f Author: Sepherosa Ziehau <sephe@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
文章代碼(AID): #1DRzTmGU (DFBSD_commit)