git: ioapic: Rework I/O APIC APIC ID allocation

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Mar 23 08:18:20 PDT 2011


commit 68b90e82b2697c9d6acc358c76689a96a5958797
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Mar 23 20:04:15 2011 +0800

    ioapic: Rework I/O APIC APIC ID allocation
    
    - I/O APIC's ID field in ID register contains only 4bits, so only 16
      I/O APICs should be allowed.
    - All I/O APIC's APIC ID's lower 4bits (what we wrote to I/O APIC ID
      register) must be different from each other, this should be done
      even on xAPIC (e.g. Pentium 4), where I/O APIC's APIC IDs are not
      required to be different from what LAPIC's.

Summary of changes:
 sys/platform/pc32/apic/mpapic.c |  140 ++++++++++++++++++++++++++++++++++-----
 sys/platform/pc64/apic/mpapic.c |  140 ++++++++++++++++++++++++++++++++++-----
 2 files changed, 246 insertions(+), 34 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/68b90e82b2697c9d6acc358c76689a96a5958797


-- 
DragonFly BSD source repository





More information about the Commits mailing list