patch-2.2.0-pre1 linux/arch/i386/kernel/irq.c
Next file: linux/arch/i386/kernel/irq.h
Previous file: linux/arch/i386/kernel/io_apic.c
Back to the patch index
Back to the overall index
- Lines: 56
- Date:
Sun Dec 27 22:45:13 1998
- Orig file:
v2.1.132/linux/arch/i386/kernel/irq.c
- Orig date:
Tue Dec 22 14:16:53 1998
diff -u --recursive --new-file v2.1.132/linux/arch/i386/kernel/irq.c linux/arch/i386/kernel/irq.c
@@ -189,7 +189,7 @@
/*
* The following vectors are part of the Linux architecture, there
* is no hardware IRQ pin equivalent for them, they are triggered
- * through the ICC by us (IPIs), via smp_message_pass():
+ * through the ICC by us (IPIs)
*/
BUILD_SMP_INTERRUPT(reschedule_interrupt)
BUILD_SMP_INTERRUPT(invalidate_interrupt)
@@ -297,7 +297,7 @@
}
p += sprintf(p, "NMI: %10u\n", atomic_read(&nmi_counter));
#ifdef __SMP__
- p += sprintf(p, "IPI: %10lu\n", ipi_count);
+ p += sprintf(p, "ERR: %10lu\n", ipi_count);
#endif
return p - buf;
}
@@ -709,7 +709,7 @@
spin_lock_irqsave(&irq_controller_lock, flags);
switch (irq_desc[irq].depth) {
case 1:
- irq_desc[irq].status &= ~IRQ_DISABLED;
+ irq_desc[irq].status &= ~(IRQ_DISABLED | IRQ_INPROGRESS);
irq_desc[irq].handler->enable(irq);
/* fall throught */
default:
@@ -989,22 +989,22 @@
*/
/* IPI for rescheduling */
- set_intr_gate(0x30, reschedule_interrupt);
+ set_intr_gate(RESCHEDULE_VECTOR, reschedule_interrupt);
/* IPI for invalidation */
- set_intr_gate(0x31, invalidate_interrupt);
+ set_intr_gate(INVALIDATE_TLB_VECTOR, invalidate_interrupt);
/* IPI for CPU halt */
- set_intr_gate(0x40, stop_cpu_interrupt);
+ set_intr_gate(STOP_CPU_VECTOR, stop_cpu_interrupt);
/* self generated IPI for local APIC timer */
- set_intr_gate(0x41, apic_timer_interrupt);
+ set_intr_gate(LOCAL_TIMER_VECTOR, apic_timer_interrupt);
/* IPI for MTRR control */
- set_intr_gate(0x50, mtrr_interrupt);
+ set_intr_gate(MTRR_CHANGE_VECTOR, mtrr_interrupt);
/* IPI vector for APIC spurious interrupts */
- set_intr_gate(0xff, spurious_interrupt);
+ set_intr_gate(SPURIOUS_APIC_VECTOR, spurious_interrupt);
#endif
request_region(0x20,0x20,"pic1");
request_region(0xa0,0x20,"pic2");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov