De-confuse the IO APIC mapping code by creating a helper procedure to
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 3 Nov 2005 20:10:55 +0000 (20:10 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 3 Nov 2005 20:10:55 +0000 (20:10 +0000)
commitf13b5eecaac2be50361543f1bf918a66cd2fd1df
tree99546d6995ec1a55233321ab21c99d99eadcbf3b
parent9d6bf2dfcb8653975c9d1a0cd5388bb071c31123
De-confuse the IO APIC mapping code by creating a helper procedure to
map the apic physical address space (or any core memory mapped I/O) into KVA.

Instead of assuming that the SMPpg[] page table page has room for the
mappings, actually check and assert that it does, in fact, have room.
sys/i386/i386/mp_machdep.c
sys/i386/include/globaldata.h
sys/i386/include/smp.h
sys/platform/pc32/i386/mp_machdep.c
sys/platform/pc32/include/globaldata.h
sys/platform/pc32/include/smp.h