aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2008-08-15 07:51:22 -0400
committerIngo Molnar <mingo@elte.hu>2008-08-15 07:51:22 -0400
commitc93baa1ae51cdba25a5f5ad37b2348e700e75daf (patch)
treeff373df8f1b0f2faa82bdcc2b27202cb46f7ad6b /arch/x86/kernel
parent64e474d168e3cf31e44890b4947644d361f84e43 (diff)
x86: apic - unify verify_local_APIC
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-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.