x2apic: fix reserved APIC register accesses in print_local_APIC()
authorYinghai Lu <yhlu.kernel@gmail.com>
Wed, 3 Sep 2008 23:58:31 +0000 (16:58 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:53:04 +0000 (16:53 +0200)
commita11b5abef50722e42a7d13f6b799c4f606fcb797
treeeed224f07b6c8fc20cc4a454578e34721999b763
parentc59d85a7b7822b83fc9783314543eea0ca860480
x2apic: fix reserved APIC register accesses in print_local_APIC()

APIC_ARBPRI is a reserved register for XAPIC and beyond.
APIC_RRR is a reserved register except for 82489DX, APIC for Pentium processors.
APIC_EOI is a write only register.
APIC_DFR is reserved in x2apic mode.

Access to these registers in x2apic will result in #GP fault. Fix these
apic register accesses.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/io_apic.c
include/asm-x86/apic.h