ce191a86531c41ea71856b35073f27501b88ae42
[akaros.git] / kern / arch / sparc / trap_table.S
1 #include <arch/trap_table.h>
2
3         .text
4         .align          4096
5         .global         trap_table
6 trap_table:
7
8         UNHANDLED_TRAP                          ! 0x00
9         TRAP_TABLE_ENTRY(access_exception)      ! 0x01
10         TRAP_TABLE_ENTRY(illegal_instruction)   ! 0x02
11         UNHANDLED_TRAP                          ! 0x03
12         TRAP_TABLE_ENTRY(fp_disabled)           ! 0x04
13         JMP(handle_window_overflow)             ! 0x05
14         JMP(handle_window_underflow)            ! 0x06
15
16 #ifndef TINY_MEM
17
18         TRAP_TABLE_ENTRY(address_unaligned)     ! 0x07
19         JMP(fast_fp_exception)                  ! 0x08
20         TRAP_TABLE_ENTRY(access_exception)      ! 0x09
21         UNHANDLED_TRAP                          ! 0x0A
22         UNHANDLED_TRAP                          ! 0x0B
23         UNHANDLED_TRAP                          ! 0x0C
24         UNHANDLED_TRAP                          ! 0x0D
25         UNHANDLED_TRAP                          ! 0x0E
26         UNHANDLED_TRAP                          ! 0x0F
27         UNHANDLED_TRAP                          ! 0x10
28         UNHANDLED_TRAP                          ! 0x11
29         UNHANDLED_TRAP                          ! 0x12
30         UNHANDLED_TRAP                          ! 0x13
31         UNHANDLED_TRAP                          ! 0x14
32         UNHANDLED_TRAP                          ! 0x15
33         UNHANDLED_TRAP                          ! 0x16
34         UNHANDLED_TRAP                          ! 0x17
35         UNHANDLED_TRAP                          ! 0x18
36         UNHANDLED_TRAP                          ! 0x19
37         JMP(handle_timer_interrupt)             ! 0x1A
38         UNHANDLED_TRAP                          ! 0x1B
39         UNHANDLED_TRAP                          ! 0x1C
40         UNHANDLED_TRAP                          ! 0x1D
41         TRAP_TABLE_ENTRY(handle_ipi)            ! 0x1E
42         UNHANDLED_TRAP                          ! 0x1F
43         UNHANDLED_TRAP                          ! 0x20
44         UNHANDLED_TRAP                          ! 0x21
45         UNHANDLED_TRAP                          ! 0x22
46         UNHANDLED_TRAP                          ! 0x23
47         UNHANDLED_TRAP                          ! 0x24
48         UNHANDLED_TRAP                          ! 0x25
49         UNHANDLED_TRAP                          ! 0x26
50         UNHANDLED_TRAP                          ! 0x27
51         UNHANDLED_TRAP                          ! 0x28
52         UNHANDLED_TRAP                          ! 0x29
53         UNHANDLED_TRAP                          ! 0x2A
54         UNHANDLED_TRAP                          ! 0x2B
55         UNHANDLED_TRAP                          ! 0x2C
56         UNHANDLED_TRAP                          ! 0x2D
57         UNHANDLED_TRAP                          ! 0x2E
58         UNHANDLED_TRAP                          ! 0x2F
59         UNHANDLED_TRAP                          ! 0x30
60         UNHANDLED_TRAP                          ! 0x31
61         UNHANDLED_TRAP                          ! 0x32
62         UNHANDLED_TRAP                          ! 0x33
63         UNHANDLED_TRAP                          ! 0x34
64         UNHANDLED_TRAP                          ! 0x35
65         UNHANDLED_TRAP                          ! 0x36
66         UNHANDLED_TRAP                          ! 0x37
67         UNHANDLED_TRAP                          ! 0x38
68         UNHANDLED_TRAP                          ! 0x39
69         UNHANDLED_TRAP                          ! 0x3A
70         UNHANDLED_TRAP                          ! 0x3B
71         UNHANDLED_TRAP                          ! 0x3C
72         UNHANDLED_TRAP                          ! 0x3D
73         UNHANDLED_TRAP                          ! 0x3E
74         UNHANDLED_TRAP                          ! 0x3F
75         UNHANDLED_TRAP                          ! 0x40
76         UNHANDLED_TRAP                          ! 0x41
77         UNHANDLED_TRAP                          ! 0x42
78         UNHANDLED_TRAP                          ! 0x43
79         UNHANDLED_TRAP                          ! 0x44
80         UNHANDLED_TRAP                          ! 0x45
81         UNHANDLED_TRAP                          ! 0x46
82         UNHANDLED_TRAP                          ! 0x47
83         UNHANDLED_TRAP                          ! 0x48
84         UNHANDLED_TRAP                          ! 0x49
85         UNHANDLED_TRAP                          ! 0x4A
86         UNHANDLED_TRAP                          ! 0x4B
87         UNHANDLED_TRAP                          ! 0x4C
88         UNHANDLED_TRAP                          ! 0x4D
89         UNHANDLED_TRAP                          ! 0x4E
90         UNHANDLED_TRAP                          ! 0x4F
91         UNHANDLED_TRAP                          ! 0x50
92         UNHANDLED_TRAP                          ! 0x51
93         UNHANDLED_TRAP                          ! 0x52
94         UNHANDLED_TRAP                          ! 0x53
95         UNHANDLED_TRAP                          ! 0x54
96         UNHANDLED_TRAP                          ! 0x55
97         UNHANDLED_TRAP                          ! 0x56
98         UNHANDLED_TRAP                          ! 0x57
99         UNHANDLED_TRAP                          ! 0x58
100         UNHANDLED_TRAP                          ! 0x59
101         UNHANDLED_TRAP                          ! 0x5A
102         UNHANDLED_TRAP                          ! 0x5B
103         UNHANDLED_TRAP                          ! 0x5C
104         UNHANDLED_TRAP                          ! 0x5D
105         UNHANDLED_TRAP                          ! 0x5E
106         UNHANDLED_TRAP                          ! 0x5F
107         UNHANDLED_TRAP                          ! 0x60
108         UNHANDLED_TRAP                          ! 0x61
109         UNHANDLED_TRAP                          ! 0x62
110         UNHANDLED_TRAP                          ! 0x63
111         UNHANDLED_TRAP                          ! 0x64
112         UNHANDLED_TRAP                          ! 0x65
113         UNHANDLED_TRAP                          ! 0x66
114         UNHANDLED_TRAP                          ! 0x67
115         UNHANDLED_TRAP                          ! 0x68
116         UNHANDLED_TRAP                          ! 0x69
117         UNHANDLED_TRAP                          ! 0x6A
118         UNHANDLED_TRAP                          ! 0x6B
119         UNHANDLED_TRAP                          ! 0x6C
120         UNHANDLED_TRAP                          ! 0x6D
121         UNHANDLED_TRAP                          ! 0x6E
122         UNHANDLED_TRAP                          ! 0x6F
123         UNHANDLED_TRAP                          ! 0x70
124         UNHANDLED_TRAP                          ! 0x71
125         UNHANDLED_TRAP                          ! 0x72
126         UNHANDLED_TRAP                          ! 0x73
127         UNHANDLED_TRAP                          ! 0x74
128         UNHANDLED_TRAP                          ! 0x75
129         UNHANDLED_TRAP                          ! 0x76
130         UNHANDLED_TRAP                          ! 0x77
131         UNHANDLED_TRAP                          ! 0x78
132         UNHANDLED_TRAP                          ! 0x79
133         UNHANDLED_TRAP                          ! 0x7A
134         UNHANDLED_TRAP                          ! 0x7B
135         UNHANDLED_TRAP                          ! 0x7C
136         UNHANDLED_TRAP                          ! 0x7D
137         UNHANDLED_TRAP                          ! 0x7E
138         UNHANDLED_TRAP                          ! 0x7F
139         UNHANDLED_TRAP                          ! 0x80
140         UNHANDLED_TRAP                          ! 0x81
141         UNHANDLED_TRAP                          ! 0x82
142         TRAP_TABLE_ENTRY(handle_flushw)         ! 0x83
143         UNHANDLED_TRAP                          ! 0x84
144         UNHANDLED_TRAP                          ! 0x85
145         UNHANDLED_TRAP                          ! 0x86
146         UNHANDLED_TRAP                          ! 0x87
147         TRAP_TABLE_ENTRY(handle_syscall)        ! 0x88
148         JMP(handle_perfctr)                     ! 0x89
149         andn %i0,3,%i0; lda [%i0] 2,%i0; jmp %l2; rett %l2+4 ! 0x8A
150         andn %i0,3,%i0; sta %i1,[%i0] 2; jmp %l2; rett %l2+4 ! 0x8A
151         UNHANDLED_TRAP                          ! 0x8C
152         UNHANDLED_TRAP                          ! 0x8D
153         UNHANDLED_TRAP                          ! 0x8E
154         UNHANDLED_TRAP                          ! 0x8F
155         UNHANDLED_TRAP                          ! 0x90
156         UNHANDLED_TRAP                          ! 0x91
157         UNHANDLED_TRAP                          ! 0x92
158         UNHANDLED_TRAP                          ! 0x93
159         UNHANDLED_TRAP                          ! 0x94
160         UNHANDLED_TRAP                          ! 0x95
161         UNHANDLED_TRAP                          ! 0x96
162         UNHANDLED_TRAP                          ! 0x97
163         UNHANDLED_TRAP                          ! 0x98
164         UNHANDLED_TRAP                          ! 0x99
165         UNHANDLED_TRAP                          ! 0x9A
166         UNHANDLED_TRAP                          ! 0x9B
167         UNHANDLED_TRAP                          ! 0x9C
168         UNHANDLED_TRAP                          ! 0x9D
169         UNHANDLED_TRAP                          ! 0x9E
170         UNHANDLED_TRAP                          ! 0x9F
171         UNHANDLED_TRAP                          ! 0xA0
172         UNHANDLED_TRAP                          ! 0xA1
173         UNHANDLED_TRAP                          ! 0xA2
174         UNHANDLED_TRAP                          ! 0xA3
175         UNHANDLED_TRAP                          ! 0xA4
176         UNHANDLED_TRAP                          ! 0xA5
177         UNHANDLED_TRAP                          ! 0xA6
178         UNHANDLED_TRAP                          ! 0xA7
179         UNHANDLED_TRAP                          ! 0xA8
180         UNHANDLED_TRAP                          ! 0xA9
181         UNHANDLED_TRAP                          ! 0xAA
182         UNHANDLED_TRAP                          ! 0xAB
183         UNHANDLED_TRAP                          ! 0xAC
184         UNHANDLED_TRAP                          ! 0xAD
185         UNHANDLED_TRAP                          ! 0xAE
186         UNHANDLED_TRAP                          ! 0xAF
187         UNHANDLED_TRAP                          ! 0xB0
188         UNHANDLED_TRAP                          ! 0xB1
189         UNHANDLED_TRAP                          ! 0xB2
190         UNHANDLED_TRAP                          ! 0xB3
191         UNHANDLED_TRAP                          ! 0xB4
192         UNHANDLED_TRAP                          ! 0xB5
193         UNHANDLED_TRAP                          ! 0xB6
194         UNHANDLED_TRAP                          ! 0xB7
195         UNHANDLED_TRAP                          ! 0xB8
196         UNHANDLED_TRAP                          ! 0xB9
197         UNHANDLED_TRAP                          ! 0xBA
198         UNHANDLED_TRAP                          ! 0xBB
199         UNHANDLED_TRAP                          ! 0xBC
200         UNHANDLED_TRAP                          ! 0xBD
201         UNHANDLED_TRAP                          ! 0xBE
202         UNHANDLED_TRAP                          ! 0xBF
203         UNHANDLED_TRAP                          ! 0xC0
204         UNHANDLED_TRAP                          ! 0xC1
205         UNHANDLED_TRAP                          ! 0xC2
206         UNHANDLED_TRAP                          ! 0xC3
207         UNHANDLED_TRAP                          ! 0xC4
208         UNHANDLED_TRAP                          ! 0xC5
209         UNHANDLED_TRAP                          ! 0xC6
210         UNHANDLED_TRAP                          ! 0xC7
211         UNHANDLED_TRAP                          ! 0xC8
212         UNHANDLED_TRAP                          ! 0xC9
213         UNHANDLED_TRAP                          ! 0xCA
214         UNHANDLED_TRAP                          ! 0xCB
215         UNHANDLED_TRAP                          ! 0xCC
216         UNHANDLED_TRAP                          ! 0xCD
217         UNHANDLED_TRAP                          ! 0xCE
218         UNHANDLED_TRAP                          ! 0xCF
219         UNHANDLED_TRAP                          ! 0xD0
220         UNHANDLED_TRAP                          ! 0xD1
221         UNHANDLED_TRAP                          ! 0xD2
222         UNHANDLED_TRAP                          ! 0xD3
223         UNHANDLED_TRAP                          ! 0xD4
224         UNHANDLED_TRAP                          ! 0xD5
225         UNHANDLED_TRAP                          ! 0xD6
226         UNHANDLED_TRAP                          ! 0xD7
227         UNHANDLED_TRAP                          ! 0xD8
228         UNHANDLED_TRAP                          ! 0xD9
229         UNHANDLED_TRAP                          ! 0xDA
230         UNHANDLED_TRAP                          ! 0xDB
231         UNHANDLED_TRAP                          ! 0xDC
232         UNHANDLED_TRAP                          ! 0xDD
233         UNHANDLED_TRAP                          ! 0xDE
234         UNHANDLED_TRAP                          ! 0xDF
235         UNHANDLED_TRAP                          ! 0xE0
236         UNHANDLED_TRAP                          ! 0xE1
237         UNHANDLED_TRAP                          ! 0xE2
238         UNHANDLED_TRAP                          ! 0xE3
239         UNHANDLED_TRAP                          ! 0xE4
240         UNHANDLED_TRAP                          ! 0xE5
241         UNHANDLED_TRAP                          ! 0xE6
242         UNHANDLED_TRAP                          ! 0xE7
243         UNHANDLED_TRAP                          ! 0xE8
244         UNHANDLED_TRAP                          ! 0xE9
245         UNHANDLED_TRAP                          ! 0xEA
246         UNHANDLED_TRAP                          ! 0xEB
247         UNHANDLED_TRAP                          ! 0xEC
248         UNHANDLED_TRAP                          ! 0xED
249         UNHANDLED_TRAP                          ! 0xEE
250         UNHANDLED_TRAP                          ! 0xEF
251         UNHANDLED_TRAP                          ! 0xF0
252         UNHANDLED_TRAP                          ! 0xF1
253         UNHANDLED_TRAP                          ! 0xF2
254         UNHANDLED_TRAP                          ! 0xF3
255         UNHANDLED_TRAP                          ! 0xF4
256         UNHANDLED_TRAP                          ! 0xF5
257         UNHANDLED_TRAP                          ! 0xF6
258         UNHANDLED_TRAP                          ! 0xF7
259         UNHANDLED_TRAP                          ! 0xF8
260         UNHANDLED_TRAP                          ! 0xF9
261         UNHANDLED_TRAP                          ! 0xFA
262         UNHANDLED_TRAP                          ! 0xFB
263         UNHANDLED_TRAP                          ! 0xFC
264         UNHANDLED_TRAP                          ! 0xFD
265         UNHANDLED_TRAP                          ! 0xFE
266         TRAP_TABLE_ENTRY(handle_breakpoint)     ! 0xFF
267
268 #endif