patch-2.2.14 linux/arch/ppc/kernel/open_pic.c
Next file: linux/arch/ppc/kernel/open_pic.h
Previous file: linux/arch/ppc/kernel/irq.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Tue Jan 4 10:12:12 2000
- Orig file:
v2.2.13/linux/arch/ppc/kernel/open_pic.c
- Orig date:
Tue May 11 08:24:32 1999
diff -u --recursive --new-file v2.2.13/linux/arch/ppc/kernel/open_pic.c linux/arch/ppc/kernel/open_pic.c
@@ -10,30 +10,30 @@
#ifdef __SMP__
void openpic_ipi_action(int cpl, void *dev_id, struct pt_regs *regs)
{
- smp_message_recv();
+ smp_message_recv(cpl-OPENPIC_VEC_IPI);
}
#endif /* __SMP__ */
void chrp_mask_and_ack_irq(unsigned int irq_nr)
{
- if (is_8259_irq(irq_nr))
- i8259_pic.mask_and_ack(irq_nr);
+ if ((_machine != _MACH_gemini) && is_8259_irq(irq_nr))
+ i8259_pic.mask_and_ack(irq_nr);
}
static void chrp_mask_irq(unsigned int irq_nr)
{
- if (is_8259_irq(irq_nr))
+ if ((_machine != _MACH_gemini) && is_8259_irq(irq_nr))
i8259_pic.disable(irq_nr);
else
- openpic_disable_irq(irq_to_openpic(irq_nr));
+ openpic_disable_irq(irq_nr-open_pic.irq_offset);
}
static void chrp_unmask_irq(unsigned int irq_nr)
{
- if (is_8259_irq(irq_nr))
+ if ((_machine != _MACH_gemini) && is_8259_irq(irq_nr))
i8259_pic.enable(irq_nr);
else
- openpic_enable_irq(irq_to_openpic(irq_nr));
+ openpic_enable_irq(irq_nr-open_pic.irq_offset);
}
struct hw_interrupt_type open_pic = {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)