http://www.hht-eu.com/pls/hht/docs/F3140/bcm963xx_Speedport500V.0.09.04L.300L01.V27_c...
[bcm963xx.git] / kernel / linux / arch / mips / brcm-boards / generic / int-handler.S
1 /*
2 <:copyright-gpl 
3  Copyright 2002 Broadcom Corp. All Rights Reserved. 
4  
5  This program is free software; you can distribute it and/or modify it 
6  under the terms of the GNU General Public License (Version 2) as 
7  published by the Free Software Foundation. 
8  
9  This program is distributed in the hope it will be useful, but WITHOUT 
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
11  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License 
12  for more details. 
13  
14  You should have received a copy of the GNU General Public License along 
15  with this program; if not, write to the Free Software Foundation, Inc., 
16  59 Temple Place - Suite 330, Boston MA 02111-1307, USA. 
17 :>
18 */
19 /*
20  * Generic interrupt handler for Broadcom MIPS boards
21  */
22
23 #include <linux/config.h>
24
25 #include <asm/asm.h>
26 #include <asm/mipsregs.h>
27 #include <asm/regdef.h>
28 #include <asm/stackframe.h>
29
30 /*
31  *      MIPS IRQ        Source
32  *      --------        ------
33  *             0        Software (ignored)
34  *             1        Software (ignored)
35  *             2        Combined hardware interrupt (hw0)
36  *             3        Hardware
37  *             4        Hardware
38  *             5        Hardware
39  *             6        Hardware
40  *             7        R4k timer
41  */
42
43         .text
44         .set    noreorder
45         .set    noat
46         .align  5
47         NESTED(brcmIRQ, PT_SIZE, sp)
48         SAVE_ALL
49         CLI
50         .set    noreorder
51         .set    at
52
53         jal             brcm_irq_dispatch
54         move    a0, sp
55
56         j       ret_from_irq
57         nop
58                 
59         END(brcmIRQ)