i386/lapic: Handle the case that the CPU does not have LAPIC for SMP kernel
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 13 May 2011 03:26:32 +0000 (11:26 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 13 May 2011 08:39:42 +0000 (16:39 +0800)
commitac032dadbf456a0ee28a33d6cacf9eea96eea158
tree8af406ff1296915026562e32b9a89d6b33a16fe2
parentbe1519b370a8484e6f7763393aec95c20edca505
i386/lapic: Handle the case that the CPU does not have LAPIC for SMP kernel

If LAPIC does not exist:
- Reset apic_io_enable and reinitialize ICU if necessary; mainly for
  ICU's auto EOI setting.
- Setup minimum information for BSP's globaldata

While I'm here, add hw.lapic_enable tunable to test this feature (just don't
use it :).
sys/platform/pc32/apic/lapic.c
sys/platform/pc32/apic/lapic.h
sys/platform/pc32/i386/mp_machdep.c
sys/platform/pc32/icu/icu.c
sys/platform/pc32/icu/icu_var.h