aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/momentum/ocelot_c/int-handler.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/momentum/ocelot_c/int-handler.S')
-rw-r--r--arch/mips/momentum/ocelot_c/int-handler.S103
1 files changed, 0 insertions, 103 deletions
diff --git a/arch/mips/momentum/ocelot_c/int-handler.S b/arch/mips/momentum/ocelot_c/int-handler.S
deleted file mode 100644
index f77834193c3c..000000000000
--- a/arch/mips/momentum/ocelot_c/int-handler.S
+++ /dev/null
@@ -1,103 +0,0 @@
1/*
2 * Copyright 2002 Momentum Computer Inc.
3 * Author: Matthew Dharm <mdharm@momenco.com>
4 *
5 * Copyright 2001 MontaVista Software Inc.
6 * Author: jsun@mvista.com or jsun@junsun.net
7 *
8 * First-level interrupt dispatcher for Ocelot-CS board.
9 *
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by the
12 * Free Software Foundation; either version 2 of the License, or (at your
13 * option) any later version.
14 */
15#include <asm/asm.h>
16#include <asm/mipsregs.h>
17#include <asm/addrspace.h>
18#include <asm/regdef.h>
19#include <asm/stackframe.h>
20#include "ocelot_c_fpga.h"
21
22/*
23 * First level interrupt dispatcher for Ocelot-CS board
24 */
25 .align 5
26 NESTED(ocelot_handle_int, PT_SIZE, sp)
27 SAVE_ALL
28 CLI
29 .set at
30 mfc0 t0, CP0_CAUSE
31 mfc0 t2, CP0_STATUS
32
33 and t0, t2
34
35 andi t1, t0, STATUSF_IP0 /* sw0 software interrupt */
36 bnez t1, ll_sw0_irq
37 andi t1, t0, STATUSF_IP1 /* sw1 software interrupt */
38 bnez t1, ll_sw1_irq
39 andi t1, t0, STATUSF_IP2 /* int0 hardware line */
40 bnez t1, ll_scsi_irq
41 andi t1, t0, STATUSF_IP3 /* int1 hardware line */
42 bnez t1, ll_uart_decode_irq
43 andi t1, t0, STATUSF_IP4 /* int2 hardware line */
44 bnez t1, ll_pmc_irq
45 andi t1, t0, STATUSF_IP5 /* int3 hardware line */
46 bnez t1, ll_cpci_decode_irq
47 andi t1, t0, STATUSF_IP6 /* int4 hardware line */
48 bnez t1, ll_mv64340_decode_irq
49 andi t1, t0, STATUSF_IP7 /* cpu timer */
50 bnez t1, ll_cputimer_irq
51
52 .set reorder
53
54 /* wrong alarm or masked ... */
55 jal spurious_interrupt
56 nop
57 j ret_from_irq
58 END(ocelot_handle_int)
59
60 .align 5
61ll_sw0_irq:
62 li a0, 0
63 move a1, sp
64 jal do_IRQ
65 j ret_from_irq
66ll_sw1_irq:
67 li a0, 1
68 move a1, sp
69 jal do_IRQ
70 j ret_from_irq
71ll_scsi_irq:
72 li a0, 2
73 move a1, sp
74 jal do_IRQ
75 j ret_from_irq
76
77ll_uart_decode_irq:
78 move a0, sp
79 jal ll_uart_irq
80 j ret_from_irq
81
82ll_pmc_irq:
83 li a0, 4
84 move a1, sp
85 jal do_IRQ
86 j ret_from_irq
87
88ll_cpci_decode_irq:
89 move a0, sp
90 jal ll_cpci_irq
91 j ret_from_irq
92
93ll_mv64340_decode_irq:
94 move a0, sp
95 jal ll_mv64340_irq
96 j ret_from_irq
97
98ll_cputimer_irq:
99 li a0, 7
100 move a1, sp
101 jal do_IRQ
102 j ret_from_irq
103