--- zzzz-none-000/linux-2.4.17/arch/mips/mips-boards/generic/mipsIRQ.S 2001-04-14 03:26:07.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/arch/mips/mips-boards/generic/mipsIRQ.S 2004-11-24 13:22:35.000000000 +0000 @@ -50,8 +50,8 @@ * 0 Software (ignored) * 1 Software (ignored) * 2 Combined hardware interrupt (hw0) - * 3 Hardware (ignored) - * 4 Hardware (ignored) + * 3 SEAD UART0 if(CONFIG_MIPS_SEAD2) else ignored + * 4 SEAD UART1 if(CONFIG_MIPS_SEAD2) else ignored * 5 Hardware (ignored) * 6 Hardware (ignored) * 7 R4k timer (what we use) @@ -98,6 +98,8 @@ jal atlas_hw0_irqdispatch #elif defined(CONFIG_MIPS_MALTA) jal malta_hw0_irqdispatch +#elif defined(CONFIG_MIPS_AVALANCHE_INTC) + jal avalanche_hw0_irqdispatch #else #error "MIPS board not supported\n" #endif @@ -106,16 +108,45 @@ j ret_from_irq nop # delay slot +#if defined(CONFIG_MIPS_SEAD2) + /* Is it a SEAD UART0 interrupt? */ +1: andi a0, s0, CAUSEF_IP3 + beq a0, zero, 1f + andi a0, s0, CAUSEF_IP4 # delay slot, check ttys1 interrupt + + + /* Wheee, a SEAD uart0 interrupt. */ + move a0, sp + jal sead_uart0_irqdispatch + nop # delay slot + + j ret_from_irq + nop # delay slot + +1: + beq a0, zero, 1f + nop + + /* Wheee, a SEAD uart interrupt. */ + move a0, sp + jal sead_uart1_irqdispatch + nop # delay slot + + j ret_from_irq + nop # delay slot + +#endif /* CONFIG_MIPS_SEAD2 */ + 1: /* * Here by mistake? This is possible, what can happen is that by the * time we take the exception the IRQ pin goes low, so just leave if * this is the case. - */ move a1,s0 PRINT("Got interrupt: c0_cause = %08x\n") mfc0 a1, CP0_EPC PRINT("c0_epc = %08x\n") + */ j ret_from_irq nop