2 #include <asm/mipsregs.h>
3 #include <asm/regdef.h>
4 #include <asm/stackframe.h>
11 NESTED(it8172_IRQ, PT_SIZE, sp)
13 CLI # Important: mark KERNEL mode !
15 /* We're working with 'reorder' set at this point. */
17 * Get pending interrupts
20 mfc0 t0,CP0_CAUSE # get pending interrupts
21 mfc0 t1,CP0_STATUS # get enabled interrupts
22 and t0,t1 # isolate allowed ones
24 andi t0,0xff00 # isolate pending bits
25 beqz t0, 3f # spurious interrupt
27 andi a0, t0, CAUSEF_IP7
30 li a0, 127 # MIPS_CPU_TIMER_IRQ = (NR_IRQS-1)
32 jal ll_timer_interrupt
37 andi a0, t0, CAUSEF_IP2 # the only int we expect at this time
40 jal it8172_hw0_irqdispatch
42 mfc0 t0,CP0_STATUS # disable interrupts
56 jal mips_spurious_interrupt