ioapic/icu: Rework PIC selection code
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 30 Jan 2011 06:33:52 +0000 (14:33 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 30 Jan 2011 07:56:33 +0000 (15:56 +0800)
commit10db3cc6642ceef0ebeba467ff8834eb194f15d6
tree8e14698e0d16c365351df341dd16b58ad73aea63
parentc9f7645b973a801d99a9ae073ff8363caf483082
ioapic/icu: Rework PIC selection code

- In the early stage, before I/O APIC is detected and setup, ICU controls
  interrupts, so all IDT entries should be set to ICU's intr code.
- Switch to I/O APIC only after ICU is completely disconnected, i.e. after
  IMCR is set and LINT0 is masked.
sys/platform/pc32/apic/apic_abi.c
sys/platform/pc32/i386/machdep.c
sys/platform/pc32/icu/icu_abi.c
sys/platform/pc32/isa/intr_machdep.c
sys/platform/pc64/apic/apic_abi.c
sys/platform/pc64/icu/icu_abi.c
sys/platform/pc64/isa/intr_machdep.c
sys/platform/pc64/x86_64/machdep.c
sys/sys/machintr.h