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

看板DFBSD_commit作者時間15年前 (2011/02/14 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 65b2387fb07c1a805b383418b9fc3f3a40e05483 Author: Sepherosa Ziehau <sephe@dragonflybsd.org> 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: ioapic_probe() Make sure that if this enumerator is selected, later ioapic enumeration could work. Return error code upon failure. ioapic_enumerate() 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 MADT. 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(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/65b2387fb07c1a805b383418b9fc3f3a40e05483 -- DragonFly BSD source repository
文章代碼(AID): #1DMEY8va (DFBSD_commit)