OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [m68k/] [efi332/] [startup/] [except_vect_332_ROM.S] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *  $Id: except_vect_332_ROM.S,v 1.2 2001-09-27 12:00:02 chris Exp $
3
 */
4
 
5
/* Exception Vector definitions follow */
6
 
7
        /* !!! Warning !!! This table is not tested, and
8
           the user must make sure it is complete. */
9
 
10
        /* If we use TRAP #15 for reboot, note that group 0 and 1 exceptions
11
           will have priority. */
12
 
13
        /* Vector 0:    RESET:  Initial SSP */
14
        .long   _RamEnd
15
        /* Vector 1:    RESET:  Initial PC */
16
        .long   start
17
 
18
        /* default action for undefined vectors is to re-boot */
19
 
20
        /* Note group 0 and 1 exception (like trace) have priority
21
           over other exceptions (like trap #15) that may call this. */
22
 
23
        /* Vectors 2-255 */
24
        .long reboot   /* exception vector:   2 */
25
        .long reboot   /* exception vector:   3 */
26
        .long reboot   /* exception vector:   4 */
27
        .long reboot   /* exception vector:   5 */
28
        .long reboot   /* exception vector:   6 */
29
        .long reboot   /* exception vector:   7 */
30
        .long reboot   /* exception vector:   8 */
31
        .long reboot   /* exception vector:   9 */
32
        .long reboot   /* exception vector:  10 */
33
        .long reboot   /* exception vector:  11 */
34
        .long reboot   /* exception vector:  12 */
35
        .long reboot   /* exception vector:  13 */
36
        .long reboot   /* exception vector:  14 */
37
        .long reboot   /* exception vector:  15 */
38
        .long reboot   /* exception vector:  16 */
39
        .long reboot   /* exception vector:  17 */
40
        .long reboot   /* exception vector:  18 */
41
        .long reboot   /* exception vector:  19 */
42
        .long reboot   /* exception vector:  20 */
43
        .long reboot   /* exception vector:  21 */
44
        .long reboot   /* exception vector:  22 */
45
        .long reboot   /* exception vector:  23 */
46
        .long reboot   /* exception vector:  24 */
47
        .long reboot   /* exception vector:  25 */
48
        .long reboot   /* exception vector:  26 */
49
        .long reboot   /* exception vector:  27 */
50
        .long reboot   /* exception vector:  28 */
51
        .long reboot   /* exception vector:  29 */
52
        .long reboot   /* exception vector:  30 */
53
        .long reboot   /* exception vector:  31 */
54
        .long reboot   /* exception vector:  32 */
55
        .long reboot   /* exception vector:  33 */
56
        .long reboot   /* exception vector:  34 */
57
        .long reboot   /* exception vector:  35 */
58
        .long reboot   /* exception vector:  36 */
59
        .long reboot   /* exception vector:  37 */
60
        .long reboot   /* exception vector:  38 */
61
        .long reboot   /* exception vector:  39 */
62
        .long reboot   /* exception vector:  40 */
63
        .long reboot   /* exception vector:  41 */
64
        .long reboot   /* exception vector:  42 */
65
        .long reboot   /* exception vector:  43 */
66
        .long reboot   /* exception vector:  44 */
67
        .long reboot   /* exception vector:  45 */
68
        .long reboot   /* exception vector:  46 */
69
        .long _reboot  /* the reboot trap:   47 */
70
        .long reboot   /* exception vector:  48 */
71
        .long reboot   /* exception vector:  49 */
72
        .long reboot   /* exception vector:  50 */
73
        .long reboot   /* exception vector:  51 */
74
        .long reboot   /* exception vector:  52 */
75
        .long reboot   /* exception vector:  53 */
76
        .long reboot   /* exception vector:  54 */
77
        .long reboot   /* exception vector:  55 */
78
        .long reboot   /* exception vector:  56 */
79
        .long reboot   /* exception vector:  57 */
80
        .long reboot   /* exception vector:  58 */
81
        .long reboot   /* exception vector:  59 */
82
        .long reboot   /* exception vector:  60 */
83
        .long reboot   /* exception vector:  61 */
84
        .long reboot   /* exception vector:  62 */
85
        .long reboot   /* exception vector:  63 */
86
        .long reboot   /* exception vector:  64 */
87
        .long reboot   /* exception vector:  65 */
88
        .long reboot   /* exception vector:  66 */
89
        .long reboot   /* exception vector:  67 */
90
        .long reboot   /* exception vector:  68 */
91
        .long reboot   /* exception vector:  69 */
92
        .long reboot   /* exception vector:  70 */
93
        .long reboot   /* exception vector:  71 */
94
        .long reboot   /* exception vector:  72 */
95
        .long reboot   /* exception vector:  73 */
96
        .long reboot   /* exception vector:  74 */
97
        .long reboot   /* exception vector:  75 */
98
        .long reboot   /* exception vector:  76 */
99
        .long reboot   /* exception vector:  77 */
100
        .long reboot   /* exception vector:  78 */
101
        .long reboot   /* exception vector:  79 */
102
        .long reboot   /* exception vector:  80 */
103
        .long reboot   /* exception vector:  81 */
104
        .long reboot   /* exception vector:  82 */
105
        .long reboot   /* exception vector:  83 */
106
        .long reboot   /* exception vector:  84 */
107
        .long reboot   /* exception vector:  85 */
108
        .long reboot   /* exception vector:  86 */
109
        .long reboot   /* exception vector:  87 */
110
        .long reboot   /* exception vector:  88 */
111
        .long reboot   /* exception vector:  89 */
112
        .long reboot   /* exception vector:  90 */
113
        .long reboot   /* exception vector:  91 */
114
        .long reboot   /* exception vector:  92 */
115
        .long reboot   /* exception vector:  93 */
116
        .long reboot   /* exception vector:  94 */
117
        .long reboot   /* exception vector:  95 */
118
        .long reboot   /* exception vector:  96 */
119
        .long reboot   /* exception vector:  97 */
120
        .long reboot   /* exception vector:  98 */
121
        .long reboot   /* exception vector:  99 */
122
        .long reboot   /* exception vector: 100 */
123
        .long reboot   /* exception vector: 101 */
124
        .long reboot   /* exception vector: 102 */
125
        .long reboot   /* exception vector: 103 */
126
        .long reboot   /* exception vector: 104 */
127
        .long reboot   /* exception vector: 105 */
128
        .long reboot   /* exception vector: 106 */
129
        .long reboot   /* exception vector: 107 */
130
        .long reboot   /* exception vector: 108 */
131
        .long reboot   /* exception vector: 109 */
132
        .long reboot   /* exception vector: 110 */
133
        .long reboot   /* exception vector: 111 */
134
        .long reboot   /* exception vector: 112 */
135
        .long reboot   /* exception vector: 113 */
136
        .long reboot   /* exception vector: 114 */
137
        .long reboot   /* exception vector: 115 */
138
        .long reboot   /* exception vector: 116 */
139
        .long reboot   /* exception vector: 117 */
140
        .long reboot   /* exception vector: 118 */
141
        .long reboot   /* exception vector: 119 */
142
        .long reboot   /* exception vector: 120 */
143
        .long reboot   /* exception vector: 121 */
144
        .long reboot   /* exception vector: 122 */
145
        .long reboot   /* exception vector: 123 */
146
        .long reboot   /* exception vector: 124 */
147
        .long reboot   /* exception vector: 125 */
148
        .long reboot   /* exception vector: 126 */
149
        .long reboot   /* exception vector: 127 */
150
        .long reboot   /* exception vector: 128 */
151
        .long reboot   /* exception vector: 129 */
152
        .long reboot   /* exception vector: 130 */
153
        .long reboot   /* exception vector: 131 */
154
        .long reboot   /* exception vector: 132 */
155
        .long reboot   /* exception vector: 133 */
156
        .long reboot   /* exception vector: 134 */
157
        .long reboot   /* exception vector: 135 */
158
        .long reboot   /* exception vector: 136 */
159
        .long reboot   /* exception vector: 137 */
160
        .long reboot   /* exception vector: 138 */
161
        .long reboot   /* exception vector: 139 */
162
        .long reboot   /* exception vector: 140 */
163
        .long reboot   /* exception vector: 141 */
164
        .long reboot   /* exception vector: 142 */
165
        .long reboot   /* exception vector: 143 */
166
        .long reboot   /* exception vector: 144 */
167
        .long reboot   /* exception vector: 145 */
168
        .long reboot   /* exception vector: 146 */
169
        .long reboot   /* exception vector: 147 */
170
        .long reboot   /* exception vector: 148 */
171
        .long reboot   /* exception vector: 149 */
172
        .long reboot   /* exception vector: 150 */
173
        .long reboot   /* exception vector: 151 */
174
        .long reboot   /* exception vector: 152 */
175
        .long reboot   /* exception vector: 153 */
176
        .long reboot   /* exception vector: 154 */
177
        .long reboot   /* exception vector: 155 */
178
        .long reboot   /* exception vector: 156 */
179
        .long reboot   /* exception vector: 157 */
180
        .long reboot   /* exception vector: 158 */
181
        .long reboot   /* exception vector: 159 */
182
        .long reboot   /* exception vector: 160 */
183
        .long reboot   /* exception vector: 161 */
184
        .long reboot   /* exception vector: 162 */
185
        .long reboot   /* exception vector: 163 */
186
        .long reboot   /* exception vector: 164 */
187
        .long reboot   /* exception vector: 165 */
188
        .long reboot   /* exception vector: 166 */
189
        .long reboot   /* exception vector: 167 */
190
        .long reboot   /* exception vector: 168 */
191
        .long reboot   /* exception vector: 169 */
192
        .long reboot   /* exception vector: 170 */
193
        .long reboot   /* exception vector: 171 */
194
        .long reboot   /* exception vector: 172 */
195
        .long reboot   /* exception vector: 173 */
196
        .long reboot   /* exception vector: 174 */
197
        .long reboot   /* exception vector: 175 */
198
        .long reboot   /* exception vector: 176 */
199
        .long reboot   /* exception vector: 177 */
200
        .long reboot   /* exception vector: 178 */
201
        .long reboot   /* exception vector: 179 */
202
        .long reboot   /* exception vector: 180 */
203
        .long reboot   /* exception vector: 181 */
204
        .long reboot   /* exception vector: 182 */
205
        .long reboot   /* exception vector: 183 */
206
        .long reboot   /* exception vector: 184 */
207
        .long reboot   /* exception vector: 185 */
208
        .long reboot   /* exception vector: 186 */
209
        .long reboot   /* exception vector: 187 */
210
        .long reboot   /* exception vector: 188 */
211
        .long reboot   /* exception vector: 189 */
212
        .long reboot   /* exception vector: 190 */
213
        .long reboot   /* exception vector: 191 */
214
        .long reboot   /* exception vector: 192 */
215
        .long reboot   /* exception vector: 193 */
216
        .long reboot   /* exception vector: 194 */
217
        .long reboot   /* exception vector: 195 */
218
        .long reboot   /* exception vector: 196 */
219
        .long reboot   /* exception vector: 197 */
220
        .long reboot   /* exception vector: 198 */
221
        .long reboot   /* exception vector: 199 */
222
        .long reboot   /* exception vector: 200 */
223
        .long reboot   /* exception vector: 201 */
224
        .long reboot   /* exception vector: 202 */
225
        .long reboot   /* exception vector: 203 */
226
        .long reboot   /* exception vector: 204 */
227
        .long reboot   /* exception vector: 205 */
228
        .long reboot   /* exception vector: 206 */
229
        .long reboot   /* exception vector: 207 */
230
        .long reboot   /* exception vector: 208 */
231
        .long reboot   /* exception vector: 209 */
232
        .long reboot   /* exception vector: 210 */
233
        .long reboot   /* exception vector: 211 */
234
        .long reboot   /* exception vector: 212 */
235
        .long reboot   /* exception vector: 213 */
236
        .long reboot   /* exception vector: 214 */
237
        .long reboot   /* exception vector: 215 */
238
        .long reboot   /* exception vector: 216 */
239
        .long reboot   /* exception vector: 217 */
240
        .long reboot   /* exception vector: 218 */
241
        .long reboot   /* exception vector: 219 */
242
        .long reboot   /* exception vector: 220 */
243
        .long reboot   /* exception vector: 221 */
244
        .long reboot   /* exception vector: 222 */
245
        .long reboot   /* exception vector: 223 */
246
        .long reboot   /* exception vector: 224 */
247
        .long reboot   /* exception vector: 225 */
248
        .long reboot   /* exception vector: 226 */
249
        .long reboot   /* exception vector: 227 */
250
        .long reboot   /* exception vector: 228 */
251
        .long reboot   /* exception vector: 229 */
252
        .long reboot   /* exception vector: 230 */
253
        .long reboot   /* exception vector: 231 */
254
        .long reboot   /* exception vector: 232 */
255
        .long reboot   /* exception vector: 233 */
256
        .long reboot   /* exception vector: 234 */
257
        .long reboot   /* exception vector: 235 */
258
        .long reboot   /* exception vector: 236 */
259
        .long reboot   /* exception vector: 237 */
260
        .long reboot   /* exception vector: 238 */
261
        .long reboot   /* exception vector: 239 */
262
        .long reboot   /* exception vector: 240 */
263
        .long reboot   /* exception vector: 241 */
264
        .long reboot   /* exception vector: 242 */
265
        .long reboot   /* exception vector: 243 */
266
        .long reboot   /* exception vector: 244 */
267
        .long reboot   /* exception vector: 245 */
268
        .long reboot   /* exception vector: 246 */
269
        .long reboot   /* exception vector: 247 */
270
        .long reboot   /* exception vector: 248 */
271
        .long reboot   /* exception vector: 249 */
272
        .long reboot   /* exception vector: 250 */
273
        .long reboot   /* exception vector: 251 */
274
        .long reboot   /* exception vector: 252 */
275
        .long reboot   /* exception vector: 253 */
276
        .long reboot   /* exception vector: 254 */
277
        .long reboot   /* exception vector: 255 */
278
 
279
 
280
_reboot:
281
        move    #0x2700,%sr     /* mask interrupts */
282
        movea.l (0x0).w,%a7     /* load stack */
283
        movea.l (0x4).w,%a0     /* jmp to location of reset vector */
284
        jmp     (%a0)
285
 
286
reboot:
287
        trap    #15             /* use trap exception to enter supervisor
288
                                   state. Trace mode ( and other group 0
289
                                   and 1 exceptions) *could* screw this up if
290
                                   not vectored to reboot or did not return. */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.