2 * Copyright 2002 Momentum Computer Inc.
3 * Author: Matthew Dharm <mdharm@momenco.com>
6 * Copyright 2001 MontaVista Software Inc.
7 * Author: jsun@mvista.com or jsun@junsun.net
9 * First-level interrupt dispatcher for Jaguar-ATX board.
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by the
13 * Free Software Foundation; either version 2 of the License, or (at your
14 * option) any later version.
17 #include <asm/mipsregs.h>
18 #include <asm/addrspace.h>
19 #include <asm/regdef.h>
20 #include <asm/stackframe.h>
23 * First level interrupt dispatcher for Ocelot-CS board
26 NESTED(jaguar_handle_int, PT_SIZE, sp)
35 andi t1, t0, STATUSF_IP0 /* sw0 software interrupt */
37 andi t1, t0, STATUSF_IP1 /* sw1 software interrupt */
39 andi t1, t0, STATUSF_IP2 /* int0 hardware line */
41 andi t1, t0, STATUSF_IP3 /* int1 hardware line */
43 andi t1, t0, STATUSF_IP4 /* int2 hardware line */
45 andi t1, t0, STATUSF_IP5 /* int3 hardware line */
47 andi t1, t0, STATUSF_IP6 /* int4 hardware line */
49 andi t1, t0, STATUSF_IP7 /* cpu timer */
50 bnez t1, ll_cputimer_irq
55 /* now look at extended interrupts */
57 cfc0 t1, CP0_S1_INTCONTROL
59 /* shift the mask 8 bits left to line up the bits */
65 andi t1, t0, STATUSF_IP8 /* int6 hardware line */
66 bnez t1, ll_mv64340_decode_irq
73 /* wrong alarm or masked ... */
76 END(jaguar_handle_int)
122 jal ll_timer_interrupt
125 ll_mv64340_decode_irq: