]> Zhao Yanbai Git Server - minix.git/commitdiff
SMP - INIT IPI deasserting fix
authorTomas Hruby <tom@minix3.org>
Wed, 13 Apr 2011 16:57:43 +0000 (16:57 +0000)
committerTomas Hruby <tom@minix3.org>
Wed, 13 Apr 2011 16:57:43 +0000 (16:57 +0000)
When deasserting the INIT IPI the DM field must be zero

kernel/arch/i386/apic.c

index 4f04b8ef56c0d3f4e3009ad4639d028aaa57ba12..d0790fa55a358e5f8371d26f9518fc308bc7a102 100644 (file)
@@ -1057,7 +1057,7 @@ PUBLIC int apic_send_init_ipi(unsigned cpu, phys_bytes trampoline)
        lapic_write(LAPIC_ICR2, (lapic_read (LAPIC_ICR2) & 0xFFFFFF) |
                                        (cpuid2apicid[cpu] << 24));
        lapic_write(LAPIC_ICR1, (lapic_read (LAPIC_ICR1) & 0xFFF32000) |
-               APIC_ICR_DEST_ALL | APIC_ICR_TM_LEVEL | APIC_ICR_DM_INIT);
+               APIC_ICR_DEST_ALL | APIC_ICR_TM_LEVEL);
 
        timeout = 1000;
        errstatus = 0;