2 * Copyright 2001 MontaVista Software Inc.
3 * Author: ppopov@mvista.com
5 * Interrupt dispatcher for Au1000 boards.
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
13 #include <asm/mipsregs.h>
14 #include <asm/addrspace.h>
15 #include <asm/regdef.h>
16 #include <asm/stackframe.h>
23 NESTED(au1000_IRQ, PT_SIZE, sp)
25 CLI # Important: mark KERNEL mode !
27 mfc0 t0,CP0_CAUSE # get pending interrupts
28 mfc0 t1,CP0_STATUS # get enabled interrupts
29 and t0,t1 # isolate allowed ones
31 andi t0,0xff00 # isolate pending bits
32 beqz t0, 3f # spurious interrupt
34 andi a0, t0, CAUSEF_IP7
37 jal mips_timer_interrupt
41 andi a0, t0, CAUSEF_IP2 # Interrupt Controller 0, Request 0
44 jal intc0_req0_irqdispatch
47 andi a0, t0, CAUSEF_IP3 # Interrupt Controller 0, Request 1
50 jal intc0_req1_irqdispatch
53 andi a0, t0, CAUSEF_IP4 # Interrupt Controller 1, Request 0
56 jal intc1_req0_irqdispatch
59 andi a0, t0, CAUSEF_IP5 # Interrupt Controller 1, Request 1
62 jal intc1_req1_irqdispatch