git: Introduce ioapic enumerators, which is used to probe and config ioapics

Sepherosa Ziehau sephe at
Mon Feb 14 00:08:00 PST 2011

commit 65b2387fb07c1a805b383418b9fc3f3a40e05483
Author: Sepherosa Ziehau <sephe at>
Date:   Mon Feb 14 14:47:39 2011 +0800

    Introduce ioapic enumerators, which is used to probe and config ioapics
    ioapic enumerator implementation should provide two methods:
        Make sure that if this enumerator is selected, later ioapic
        enumeration could work.  Return error code upon failure.
        Enumerate ioapic and prepare for later ioapic configuration in
        the common code (the configuration in the common code is not
        implemented yet).
    ioapic enumerator implementation could be registered by calling
    ioapic_enumerator_register() with ioapic_enumerator struct.  The
    higher the priority field, the earlier the ioapic enumerator's
    ioapic_probe method will be invoked.
    Currently a do-nothing-other-than-logging ioapic enumerators are
    implemented and registered.  This dummy ioapic enumerator uses ACPI

Summary of changes:
 sys/platform/pc32/apic/mpapic.c       |   40 ++++++++
 sys/platform/pc32/i386/mp_machdep.c   |    3 +
 sys/platform/pc32/i386/mp_madt.c      |  167 +++++++++++++++++++++++++++++++-
 sys/platform/pc32/include/smp.h       |   16 +++-
 sys/platform/pc64/apic/mpapic.c       |   40 ++++++++
 sys/platform/pc64/include/smp.h       |   16 +++-
 sys/platform/pc64/x86_64/mp_machdep.c |    3 +
 sys/platform/pc64/x86_64/mp_madt.c    |  164 +++++++++++++++++++++++++++++++-
 8 files changed, 434 insertions(+), 15 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list