2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 1999 Ralf Baechle
7 * Copyright (C) 1999 Silicon Graphics, Inc.
10 #include <asm/mipsregs.h>
11 #include <asm/regdef.h>
12 #include <asm/stackframe.h>
16 NESTED(ip27_irq, PT_SIZE, sp)
24 PTR_LA ra, ret_from_irq
26 /* First check for RT interrupt. */
27 andi t0, s0, CAUSEF_IP4
29 andi t0, s0, CAUSEF_IP2
31 andi t0, s0, CAUSEF_IP3
33 andi t0, s0, CAUSEF_IP5
35 andi t0, s0, CAUSEF_IP6
39 ip2: j ip27_do_irq_mask0 # PI_INT_PEND_0 or CC_PEND_{A|B}
40 ip3: j ip27_do_irq_mask1 # PI_INT_PEND_1
41 ip4: j ip27_rt_timer_interrupt
42 ip5: j ip27_prof_timer