aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/apic_32.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c
index 7783c113be24..7ef7c782a42d 100644
--- a/arch/x86/kernel/apic_32.c
+++ b/arch/x86/kernel/apic_32.c
@@ -878,6 +878,12 @@ int __init verify_local_APIC(void)
878 */ 878 */
879 reg0 = apic_read(APIC_ID); 879 reg0 = apic_read(APIC_ID);
880 apic_printk(APIC_DEBUG, "Getting ID: %x\n", reg0); 880 apic_printk(APIC_DEBUG, "Getting ID: %x\n", reg0);
881 apic_write(APIC_ID, reg0 ^ APIC_ID_MASK);
882 reg1 = apic_read(APIC_ID);
883 apic_printk(APIC_DEBUG, "Getting ID: %x\n", reg1);
884 apic_write(APIC_ID, reg0);
885 if (reg1 != (reg0 ^ APIC_ID_MASK))
886 return 0;
881 887
882 /* 888 /*
883 * The next two are just to see if we have sane values. 889 * The next two are just to see if we have sane values.