X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fmips%2Fgt64120%2Fev64120%2Firq.c;h=3b186159b21a17b9a1763736d736f550e1e0918f;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=46c468b26b30879c72b82e01e52a271b32e61d2a;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/arch/mips/gt64120/ev64120/irq.c b/arch/mips/gt64120/ev64120/irq.c index 46c468b26..3b186159b 100644 --- a/arch/mips/gt64120/ev64120/irq.c +++ b/arch/mips/gt64120/ev64120/irq.c @@ -46,22 +46,14 @@ #include #include -asmlinkage void plat_irq_dispatch(struct pt_regs *regs) +asmlinkage inline void pci_intA(struct pt_regs *regs) { - unsigned int pending = read_c0_status() & read_c0_cause(); - - if (pending & STATUSF_IP4) /* int2 hardware line (timer) */ - do_IRQ(4, regs); - else if (pending & STATUSF_IP2) /* int0 hardware line */ - do_IRQ(GT_INTA, regs); - else if (pending & STATUSF_IP5) /* int3 hardware line */ - do_IRQ(GT_INTD, regs); - else if (pending & STATUSF_IP6) /* int4 hardware line */ - do_IRQ(6, regs); - else if (pending & STATUSF_IP7) /* compare int */ - do_IRQ(7, regs); - else - spurious_interrupt(regs); + do_IRQ(GT_INTA, regs); +} + +asmlinkage inline void pci_intD(struct pt_regs *regs) +{ + do_IRQ(GT_INTD, regs); } static void disable_ev64120_irq(unsigned int irq_nr) @@ -117,11 +109,16 @@ static struct hw_interrupt_type ev64120_irq_type = { void gt64120_irq_setup(void) { + extern asmlinkage void galileo_handle_int(void); + /* * Clear all of the interrupts while we change the able around a bit. */ clear_c0_status(ST0_IM); + /* Sets the exception_handler array. */ + set_except_vector(0, galileo_handle_int); + local_irq_disable(); /*