1 | /*
|
---|
2 | * TOPPERS/JSP Kernel
|
---|
3 | * Toyohashi Open Platform for Embedded Real-Time Systems/
|
---|
4 | * Just Standard Profile Kernel
|
---|
5 | *
|
---|
6 | * Copyright (C) 2000-2004 by Embedded and Real-Time Systems Laboratory
|
---|
7 | * Toyohashi Univ. of Technology, JAPAN
|
---|
8 | * Copyright (C) 2001-2004 by Industrial Technology Institute,
|
---|
9 | * Miyagi Prefectural Government, JAPAN
|
---|
10 | * Copyright (C) 2002-2004 by Hokkaido Industrial Research Institute, JAPAN
|
---|
11 | * Copyright (C) 2007 by KURUSUGAWA Electronics Industry Inc, JAPAN
|
---|
12 | * Copyright (C) 2008 by Takahisa Yokota
|
---|
13 | *
|
---|
14 | * ä¸è¨è使¨©è
|
---|
15 | ã¯ï¼ä»¥ä¸ã® (1)ã(4) ã®æ¡ä»¶ãï¼Free Software Foundation
|
---|
16 | * ã«ãã£ã¦å
|
---|
17 | ¬è¡¨ããã¦ãã GNU General Public License ã® Version 2 ã«è¨
|
---|
18 | * è¿°ããã¦ããæ¡ä»¶ãæºããå ´åã«éãï¼æ¬ã½ããã¦ã§ã¢ï¼æ¬ã½ããã¦ã§ã¢
|
---|
19 | * ãæ¹å¤ãããã®ãå«ãï¼ä»¥ä¸åãï¼ã使ç¨ã»è¤è£½ã»æ¹å¤ã»åé
|
---|
20 | å¸ï¼ä»¥ä¸ï¼
|
---|
21 | * å©ç¨ã¨å¼ã¶ï¼ãããã¨ãç¡åã§è¨±è«¾ããï¼
|
---|
22 | * (1) æ¬ã½ããã¦ã§ã¢ãã½ã¼ã¹ã³ã¼ãã®å½¢ã§å©ç¨ããå ´åã«ã¯ï¼ä¸è¨ã®èä½
|
---|
23 | * 権表示ï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãï¼ãã®ã¾ã¾ã®å½¢ã§ã½ã¼
|
---|
24 | * ã¹ã³ã¼ãä¸ã«å«ã¾ãã¦ãããã¨ï¼
|
---|
25 | * (2) æ¬ã½ããã¦ã§ã¢ãï¼ã©ã¤ãã©ãªå½¢å¼ãªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿
|
---|
26 | * ç¨ã§ããå½¢ã§åé
|
---|
27 | å¸ããå ´åã«ã¯ï¼åé
|
---|
28 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨
|
---|
29 | * è
|
---|
30 | ããã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®è使¨©è¡¨ç¤ºï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨
|
---|
31 | * ã®ç¡ä¿è¨¼è¦å®ãæ²è¼ãããã¨ï¼
|
---|
32 | * (3) æ¬ã½ããã¦ã§ã¢ãï¼æ©å¨ã«çµã¿è¾¼ããªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿
|
---|
33 | * ç¨ã§ããªãå½¢ã§åé
|
---|
34 | å¸ããå ´åã«ã¯ï¼æ¬¡ã®ããããã®æ¡ä»¶ãæºããã
|
---|
35 | * ã¨ï¼
|
---|
36 | * (a) åé
|
---|
37 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨è
|
---|
38 | ããã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®è
|
---|
39 | * 使¨©è¡¨ç¤ºï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãæ²è¼ãããã¨ï¼
|
---|
40 | * (b) åé
|
---|
41 | å¸ã®å½¢æ
|
---|
42 | ãï¼å¥ã«å®ããæ¹æ³ã«ãã£ã¦ï¼TOPPERSããã¸ã§ã¯ãã«
|
---|
43 | * å ±åãããã¨ï¼
|
---|
44 | * (4) æ¬ã½ããã¦ã§ã¢ã®å©ç¨ã«ããç´æ¥çã¾ãã¯éæ¥çã«çãããããªãæ
|
---|
45 | * 害ãããï¼ä¸è¨è使¨©è
|
---|
46 | ããã³TOPPERSããã¸ã§ã¯ããå
|
---|
47 | 責ãããã¨ï¼
|
---|
48 | *
|
---|
49 | * æ¬ã½ããã¦ã§ã¢ã¯ï¼ç¡ä¿è¨¼ã§æä¾ããã¦ãããã®ã§ããï¼ä¸è¨è使¨©è
|
---|
50 | ã
|
---|
51 | * ãã³TOPPERSããã¸ã§ã¯ãã¯ï¼æ¬ã½ããã¦ã§ã¢ã«é¢ãã¦ï¼ãã®é©ç¨å¯è½æ§ã
|
---|
52 | * å«ãã¦ï¼ãããªãä¿è¨¼ãè¡ããªãï¼ã¾ãï¼æ¬ã½ããã¦ã§ã¢ã®å©ç¨ã«ããç´
|
---|
53 | * æ¥çã¾ãã¯éæ¥çã«çãããããªãæå®³ã«é¢ãã¦ãï¼ãã®è²¬ä»»ãè² ããªãï¼
|
---|
54 | *
|
---|
55 | * @(#) $Id: vector_table.c,v 1.3 2005/07/06 00:45:07 honda Exp $
|
---|
56 | */
|
---|
57 |
|
---|
58 | /*
|
---|
59 | * ä¾å¤ãã¯ã¿ã®å®ç¾©ï¼COLDFIREç¨ï¼
|
---|
60 | */
|
---|
61 |
|
---|
62 | #include "jsp_kernel.h"
|
---|
63 |
|
---|
64 |
|
---|
65 | #ifdef KERNEL_HAS_A_VECTOR_TABLE
|
---|
66 |
|
---|
67 | static VP _current_vbr = EXCVT_ORIG;
|
---|
68 |
|
---|
69 | extern void start(void); /* start.S */
|
---|
70 | extern void no_reg_exception(void); /* cpu_support.S */
|
---|
71 |
|
---|
72 | VP
|
---|
73 | current_vbr()
|
---|
74 | {
|
---|
75 | return _current_vbr;
|
---|
76 | }
|
---|
77 |
|
---|
78 | void
|
---|
79 | set_vbr(VP vbr)
|
---|
80 | {
|
---|
81 | _current_vbr = vbr;
|
---|
82 | Asm("movec %0, %%vbr" : : "r"(vbr));
|
---|
83 | }
|
---|
84 |
|
---|
85 | FP vector_table [192] = {
|
---|
86 | (FP)INIT_STACK, /* 0:ã¹ã¿ãã¯ãã¤ã³ã¿ã®åæå¤ */
|
---|
87 | RESET_VECTOR, /* 1:ãã¯ã¼ãªã³ãªã»ãã */
|
---|
88 | ACC_VECTOR, /* 2:ã¢ã¯ã»ã¹ã¨ã©ã¼ */
|
---|
89 | ADD_VECTOR, /* 3:ã¢ãã¬ã¹ã¨ã©ã¼ */
|
---|
90 | II_VECTOR, /* 4:ä¸è¬ä¸å½å½ä»¤ */
|
---|
91 | RESERVED_VECTOR, /* 5:d zero */
|
---|
92 | RESERVED_VECTOR, /* 6:äºç´ */
|
---|
93 | II_VECTOR, /* 7:ã·ã¹ãã äºç´ */
|
---|
94 | RESERVED_VECTOR, /* 8:pvã·ã¹ãã äºç´ */
|
---|
95 | RESERVED_VECTOR, /* 9:trace */
|
---|
96 | RESERVED_VECTOR, /* 10:line a emulator */
|
---|
97 | RESERVED_VECTOR, /* 11:line f emulator */
|
---|
98 | RESERVED_VECTOR, /* 12:ã·ã¹ãã äºç´ */
|
---|
99 | RESERVED_VECTOR, /* 13:ã·ã¹ãã äºç´ */
|
---|
100 | RESERVED_VECTOR, /* 14:ã·ã¹ãã äºç´ */
|
---|
101 | RESERVED_VECTOR, /* 15:ã·ã¹ãã äºç´ */
|
---|
102 | RESERVED_VECTOR, /* 16:ã·ã¹ãã äºç´ */
|
---|
103 | RESERVED_VECTOR, /* 17:ã·ã¹ãã äºç´ */
|
---|
104 | RESERVED_VECTOR, /* 18:ã·ã¹ãã äºç´ */
|
---|
105 | RESERVED_VECTOR, /* 19:ã·ã¹ãã äºç´ */
|
---|
106 | RESERVED_VECTOR, /* 20:ã·ã¹ãã äºç´ */
|
---|
107 | RESERVED_VECTOR, /* 21:ã·ã¹ãã äºç´ */
|
---|
108 | RESERVED_VECTOR, /* 22:ã·ã¹ãã äºç´ */
|
---|
109 | RESERVED_VECTOR, /* 23:ã·ã¹ãã äºç´ */
|
---|
110 | RESERVED_VECTOR, /* 24:ã¹ããªã¢ã¹å²ã込㿠*/
|
---|
111 | /* æ®ãã¯ããã©ã«ãã®ä¾å¤å¦ç */
|
---|
112 | no_reg_exception,
|
---|
113 | no_reg_exception,
|
---|
114 | no_reg_exception,
|
---|
115 | no_reg_exception,
|
---|
116 | no_reg_exception,
|
---|
117 | no_reg_exception,
|
---|
118 | no_reg_exception,
|
---|
119 | no_reg_exception,
|
---|
120 | no_reg_exception,
|
---|
121 | no_reg_exception,
|
---|
122 | no_reg_exception,
|
---|
123 | no_reg_exception,
|
---|
124 | no_reg_exception,
|
---|
125 | no_reg_exception,
|
---|
126 | no_reg_exception,
|
---|
127 | no_reg_exception,
|
---|
128 | no_reg_exception,
|
---|
129 | no_reg_exception,
|
---|
130 | no_reg_exception,
|
---|
131 | no_reg_exception,
|
---|
132 | no_reg_exception,
|
---|
133 | no_reg_exception,
|
---|
134 | no_reg_exception,
|
---|
135 | no_reg_exception,
|
---|
136 | no_reg_exception,
|
---|
137 | no_reg_exception,
|
---|
138 | no_reg_exception,
|
---|
139 | no_reg_exception,
|
---|
140 | no_reg_exception,
|
---|
141 | no_reg_exception,
|
---|
142 | no_reg_exception,
|
---|
143 | no_reg_exception,
|
---|
144 | no_reg_exception,
|
---|
145 | no_reg_exception,
|
---|
146 | no_reg_exception,
|
---|
147 | no_reg_exception,
|
---|
148 | no_reg_exception,
|
---|
149 | no_reg_exception,
|
---|
150 | no_reg_exception,
|
---|
151 | no_reg_exception,
|
---|
152 | no_reg_exception,
|
---|
153 | no_reg_exception,
|
---|
154 | no_reg_exception,
|
---|
155 | no_reg_exception,
|
---|
156 | no_reg_exception,
|
---|
157 | no_reg_exception,
|
---|
158 | no_reg_exception,
|
---|
159 | no_reg_exception,
|
---|
160 | no_reg_exception,
|
---|
161 | no_reg_exception,
|
---|
162 | no_reg_exception,
|
---|
163 | no_reg_exception,
|
---|
164 | no_reg_exception,
|
---|
165 | no_reg_exception,
|
---|
166 | no_reg_exception,
|
---|
167 | no_reg_exception,
|
---|
168 | no_reg_exception,
|
---|
169 | no_reg_exception,
|
---|
170 | no_reg_exception,
|
---|
171 | no_reg_exception,
|
---|
172 | no_reg_exception,
|
---|
173 | no_reg_exception,
|
---|
174 | no_reg_exception,
|
---|
175 | no_reg_exception,
|
---|
176 | no_reg_exception,
|
---|
177 | no_reg_exception,
|
---|
178 | no_reg_exception,
|
---|
179 | no_reg_exception,
|
---|
180 | no_reg_exception,
|
---|
181 | no_reg_exception,
|
---|
182 | no_reg_exception,
|
---|
183 | no_reg_exception,
|
---|
184 | no_reg_exception,
|
---|
185 | no_reg_exception,
|
---|
186 | no_reg_exception,
|
---|
187 | no_reg_exception,
|
---|
188 | no_reg_exception,
|
---|
189 | no_reg_exception,
|
---|
190 | no_reg_exception,
|
---|
191 | no_reg_exception,
|
---|
192 | no_reg_exception,
|
---|
193 | no_reg_exception,
|
---|
194 | no_reg_exception,
|
---|
195 | no_reg_exception,
|
---|
196 | no_reg_exception,
|
---|
197 | no_reg_exception,
|
---|
198 | no_reg_exception,
|
---|
199 | no_reg_exception,
|
---|
200 | no_reg_exception,
|
---|
201 | no_reg_exception,
|
---|
202 | no_reg_exception,
|
---|
203 | no_reg_exception,
|
---|
204 | no_reg_exception,
|
---|
205 | no_reg_exception,
|
---|
206 | no_reg_exception,
|
---|
207 | no_reg_exception,
|
---|
208 | no_reg_exception,
|
---|
209 | no_reg_exception,
|
---|
210 | no_reg_exception,
|
---|
211 | no_reg_exception,
|
---|
212 | no_reg_exception,
|
---|
213 | no_reg_exception,
|
---|
214 | no_reg_exception,
|
---|
215 | no_reg_exception,
|
---|
216 | no_reg_exception,
|
---|
217 | no_reg_exception,
|
---|
218 | no_reg_exception,
|
---|
219 | no_reg_exception,
|
---|
220 | no_reg_exception,
|
---|
221 | no_reg_exception,
|
---|
222 | no_reg_exception,
|
---|
223 | no_reg_exception,
|
---|
224 | no_reg_exception,
|
---|
225 | no_reg_exception,
|
---|
226 | no_reg_exception,
|
---|
227 | no_reg_exception,
|
---|
228 | no_reg_exception,
|
---|
229 | no_reg_exception,
|
---|
230 | no_reg_exception,
|
---|
231 | no_reg_exception,
|
---|
232 | no_reg_exception,
|
---|
233 | no_reg_exception,
|
---|
234 | no_reg_exception,
|
---|
235 | no_reg_exception,
|
---|
236 | no_reg_exception,
|
---|
237 | no_reg_exception,
|
---|
238 | no_reg_exception,
|
---|
239 | no_reg_exception,
|
---|
240 | no_reg_exception,
|
---|
241 | no_reg_exception,
|
---|
242 | no_reg_exception,
|
---|
243 | no_reg_exception,
|
---|
244 | no_reg_exception,
|
---|
245 | no_reg_exception,
|
---|
246 | no_reg_exception,
|
---|
247 | no_reg_exception,
|
---|
248 | no_reg_exception,
|
---|
249 | no_reg_exception,
|
---|
250 | no_reg_exception,
|
---|
251 | no_reg_exception,
|
---|
252 | no_reg_exception,
|
---|
253 | no_reg_exception,
|
---|
254 | no_reg_exception,
|
---|
255 | no_reg_exception,
|
---|
256 | no_reg_exception,
|
---|
257 | no_reg_exception,
|
---|
258 | no_reg_exception,
|
---|
259 | no_reg_exception,
|
---|
260 | no_reg_exception,
|
---|
261 | no_reg_exception,
|
---|
262 | no_reg_exception,
|
---|
263 | no_reg_exception,
|
---|
264 | no_reg_exception,
|
---|
265 | no_reg_exception,
|
---|
266 | no_reg_exception,
|
---|
267 | no_reg_exception,
|
---|
268 | no_reg_exception,
|
---|
269 | no_reg_exception,
|
---|
270 | no_reg_exception,
|
---|
271 | no_reg_exception,
|
---|
272 | no_reg_exception,
|
---|
273 | no_reg_exception,
|
---|
274 | no_reg_exception,
|
---|
275 | no_reg_exception,
|
---|
276 | no_reg_exception,
|
---|
277 | no_reg_exception,
|
---|
278 | no_reg_exception,
|
---|
279 | };
|
---|
280 |
|
---|
281 | #endif /* KERNEL_HAS_A_VECTOR_TABLE */
|
---|
282 |
|
---|