x86: make the LAPIC / IOAPIC construct switchable with Kconfig
authorHannes Schmelzer <oe5hpm@oevsv.at>
Sun, 18 Nov 2018 22:19:43 +0000 (23:19 +0100)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 10 Dec 2018 02:12:29 +0000 (10:12 +0800)
commitda4cfa6b442809fc99a6b75255a99eee51a4e13b
tree62e83f5f17430bf13b45b28da6a3adcad65f3ddb
parent73af0601e1d63f54cc9b704e07e9093a35e7d6f1
x86: make the LAPIC / IOAPIC construct switchable with Kconfig

There are still systems running which do not have any LAPIC or even
IOAPIC. Responsible MSRs for those do not exist and the systems are
crashing on trying to setup LAPIC.

This commit makes the APIC stuff able to switch off for those boards
which dont' have an LAPIC / IOAPIC.

Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/Kconfig
arch/x86/cpu/Makefile
arch/x86/cpu/i386/interrupt.c