[MIPS] Complete fixes after removal of pt_regs argument to int handlers.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
@ -42,7 +42,7 @@
|
||||
* 15 - IDE1
|
||||
*/
|
||||
|
||||
static inline void galileo_irq(struct pt_regs *regs)
|
||||
static inline void galileo_irq(void)
|
||||
{
|
||||
unsigned int mask, pending, devfn;
|
||||
|
||||
@ -52,7 +52,7 @@ static inline void galileo_irq(struct pt_regs *regs)
|
||||
if (pending & GALILEO_INTR_T0EXP) {
|
||||
|
||||
GALILEO_OUTL(~GALILEO_INTR_T0EXP, GT_INTRCAUSE_OFS);
|
||||
do_IRQ(COBALT_GALILEO_IRQ, regs);
|
||||
do_IRQ(COBALT_GALILEO_IRQ);
|
||||
|
||||
} else if (pending & GALILEO_INTR_RETRY_CTR) {
|
||||
|
||||
@ -68,44 +68,31 @@ static inline void galileo_irq(struct pt_regs *regs)
|
||||
}
|
||||
}
|
||||
|
||||
static inline void via_pic_irq(struct pt_regs *regs)
|
||||
static inline void via_pic_irq(void)
|
||||
{
|
||||
int irq;
|
||||
|
||||
irq = i8259_irq();
|
||||
if (irq >= 0)
|
||||
do_IRQ(irq, regs);
|
||||
do_IRQ(irq);
|
||||
}
|
||||
|
||||
asmlinkage void plat_irq_dispatch(struct pt_regs *regs)
|
||||
asmlinkage void plat_irq_dispatch(void)
|
||||
{
|
||||
unsigned pending;
|
||||
unsigned pending = read_c0_status() & read_c0_cause();
|
||||
|
||||
pending = read_c0_status() & read_c0_cause();
|
||||
|
||||
if (pending & CAUSEF_IP2) /* COBALT_GALILEO_IRQ (18) */
|
||||
|
||||
galileo_irq(regs);
|
||||
|
||||
else if (pending & CAUSEF_IP6) /* COBALT_VIA_IRQ (22) */
|
||||
|
||||
via_pic_irq(regs);
|
||||
|
||||
else if (pending & CAUSEF_IP3) /* COBALT_ETH0_IRQ (19) */
|
||||
|
||||
do_IRQ(COBALT_CPU_IRQ + 3, regs);
|
||||
|
||||
else if (pending & CAUSEF_IP4) /* COBALT_ETH1_IRQ (20) */
|
||||
|
||||
do_IRQ(COBALT_CPU_IRQ + 4, regs);
|
||||
|
||||
else if (pending & CAUSEF_IP5) /* COBALT_SERIAL_IRQ (21) */
|
||||
|
||||
do_IRQ(COBALT_CPU_IRQ + 5, regs);
|
||||
|
||||
else if (pending & CAUSEF_IP7) /* IRQ 23 */
|
||||
|
||||
do_IRQ(COBALT_CPU_IRQ + 7, regs);
|
||||
if (pending & CAUSEF_IP2) /* COBALT_GALILEO_IRQ (18) */
|
||||
galileo_irq();
|
||||
else if (pending & CAUSEF_IP6) /* COBALT_VIA_IRQ (22) */
|
||||
via_pic_irq();
|
||||
else if (pending & CAUSEF_IP3) /* COBALT_ETH0_IRQ (19) */
|
||||
do_IRQ(COBALT_CPU_IRQ + 3);
|
||||
else if (pending & CAUSEF_IP4) /* COBALT_ETH1_IRQ (20) */
|
||||
do_IRQ(COBALT_CPU_IRQ + 4);
|
||||
else if (pending & CAUSEF_IP5) /* COBALT_SERIAL_IRQ (21) */
|
||||
do_IRQ(COBALT_CPU_IRQ + 5);
|
||||
else if (pending & CAUSEF_IP7) /* IRQ 23 */
|
||||
do_IRQ(COBALT_CPU_IRQ + 7);
|
||||
}
|
||||
|
||||
static struct irqaction irq_via = {
|
||||
|
Reference in New Issue
Block a user