source: anotherchoice/tags/jsp-1.4.4-full-UTF8/config/cfv2/vector_table.c@ 363

Last change on this file since 363 was 363, checked in by ykominami, 5 years ago

add tags/jsp-1.4.4-full-UTF8

  • Property svn:executable set to *
File size: 7.8 KB
Line 
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
67static VP _current_vbr = EXCVT_ORIG;
68
69extern void start(void); /* start.S */
70extern void no_reg_exception(void); /* cpu_support.S */
71
72VP
73current_vbr()
74{
75 return _current_vbr;
76}
77
78void
79set_vbr(VP vbr)
80{
81 _current_vbr = vbr;
82 Asm("movec %0, %%vbr" : : "r"(vbr));
83}
84
85FP 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
Note: See TracBrowser for help on using the repository browser.