git: ioapic/icu: Rework PIC selection code

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sat Jan 29 23:57:54 PST 2011


commit 10db3cc6642ceef0ebeba467ff8834eb194f15d6
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Sun Jan 30 14:33:52 2011 +0800

    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.

Summary of changes:
 sys/platform/pc32/apic/apic_abi.c    |   46 +++++++++++++++++++-----------
 sys/platform/pc32/i386/machdep.c     |    5 +---
 sys/platform/pc32/icu/icu_abi.c      |   50 +++++++++++++++++++++++++--------
 sys/platform/pc32/isa/intr_machdep.c |   17 +++++++++---
 sys/platform/pc64/apic/apic_abi.c    |   45 +++++++++++++++++++-----------
 sys/platform/pc64/icu/icu_abi.c      |   50 +++++++++++++++++++++++++--------
 sys/platform/pc64/isa/intr_machdep.c |   17 +++++++++---
 sys/platform/pc64/x86_64/machdep.c   |    5 +---
 sys/sys/machintr.h                   |    4 +--
 9 files changed, 163 insertions(+), 76 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/10db3cc6642ceef0ebeba467ff8834eb194f15d6


-- 
DragonFly BSD source repository





More information about the Commits mailing list