1 |
578 |
jeremybenn |
/*
|
2 |
|
|
* File: vectors.s
|
3 |
|
|
* Purpose: MCF5225x vector table
|
4 |
|
|
*
|
5 |
|
|
* License: All software covered by license agreement in -
|
6 |
|
|
* docs/Freescale_Software_License.pdf
|
7 |
|
|
*/
|
8 |
|
|
|
9 |
|
|
#ifdef __GNUC__ /* { */
|
10 |
|
|
#define sr %sr
|
11 |
|
|
#define _asm_exception_handler irq_handler
|
12 |
|
|
#define _timer_handler timer_handler
|
13 |
|
|
#endif /* } __GNUC__ */
|
14 |
|
|
|
15 |
|
|
.global VECTOR_TABLE
|
16 |
|
|
.global _VECTOR_TABLE
|
17 |
|
|
.global start
|
18 |
|
|
|
19 |
|
|
.extern ___SP_INIT
|
20 |
|
|
.extern _asm_startmeup
|
21 |
|
|
.extern _asm_exception_handler
|
22 |
|
|
.extern _vPIT0InterruptHandler
|
23 |
|
|
.extern vPortYieldISR
|
24 |
|
|
.extern _vFECISRHandler
|
25 |
|
|
.text
|
26 |
|
|
|
27 |
|
|
/*
|
28 |
|
|
* Exception Vector Table
|
29 |
|
|
*/
|
30 |
|
|
VECTOR_TABLE:
|
31 |
|
|
_VECTOR_TABLE:
|
32 |
|
|
INITSP: .long ___SP_INIT /* Initial SP */
|
33 |
|
|
INITPC: .long _asm_startmeup /* Initial PC */
|
34 |
|
|
vector02: .long _asm_exception_handler /* Access Error */
|
35 |
|
|
vector03: .long _asm_exception_handler /* Address Error */
|
36 |
|
|
vector04: .long _asm_exception_handler /* Illegal Instruction */
|
37 |
|
|
vector05: .long _asm_exception_handler /* Reserved */
|
38 |
|
|
vector06: .long _asm_exception_handler /* Reserved */
|
39 |
|
|
vector07: .long _asm_exception_handler /* Reserved */
|
40 |
|
|
vector08: .long _asm_exception_handler /* Privilege Violation */
|
41 |
|
|
vector09: .long _asm_exception_handler /* Trace */
|
42 |
|
|
vector0A: .long _asm_exception_handler /* Unimplemented A-Line */
|
43 |
|
|
vector0B: .long _asm_exception_handler /* Unimplemented F-Line */
|
44 |
|
|
vector0C: .long _asm_exception_handler /* Debug Interrupt */
|
45 |
|
|
vector0D: .long _asm_exception_handler /* Reserved */
|
46 |
|
|
vector0E: .long _asm_exception_handler /* Format Error */
|
47 |
|
|
vector0F: .long _asm_exception_handler /* Unitialized Int. */
|
48 |
|
|
vector10: .long _asm_exception_handler /* Reserved */
|
49 |
|
|
vector11: .long _asm_exception_handler /* Reserved */
|
50 |
|
|
vector12: .long _asm_exception_handler /* Reserved */
|
51 |
|
|
vector13: .long _asm_exception_handler /* Reserved */
|
52 |
|
|
vector14: .long _asm_exception_handler /* Reserved */
|
53 |
|
|
vector15: .long _asm_exception_handler /* Reserved */
|
54 |
|
|
vector16: .long _asm_exception_handler /* Reserved */
|
55 |
|
|
vector17: .long _asm_exception_handler /* Reserved */
|
56 |
|
|
vector18: .long _asm_exception_handler /* Spurious Interrupt */
|
57 |
|
|
vector19: .long _asm_exception_handler /* Autovector Level 1 */
|
58 |
|
|
vector1A: .long _asm_exception_handler /* Autovector Level 2 */
|
59 |
|
|
vector1B: .long _asm_exception_handler /* Autovector Level 3 */
|
60 |
|
|
vector1C: .long _asm_exception_handler /* Autovector Level 4 */
|
61 |
|
|
vector1D: .long _asm_exception_handler /* Autovector Level 5 */
|
62 |
|
|
vector1E: .long _asm_exception_handler /* Autovector Level 6 */
|
63 |
|
|
vector1F: .long _asm_exception_handler /* Autovector Level 7 */
|
64 |
|
|
vector20: .long _asm_exception_handler /* TRAP #0 */
|
65 |
|
|
vector21: .long _asm_exception_handler /* TRAP #1 */
|
66 |
|
|
vector22: .long _asm_exception_handler /* TRAP #2 */
|
67 |
|
|
vector23: .long _asm_exception_handler /* TRAP #3 */
|
68 |
|
|
vector24: .long _asm_exception_handler /* TRAP #4 */
|
69 |
|
|
vector25: .long _asm_exception_handler /* TRAP #5 */
|
70 |
|
|
vector26: .long _asm_exception_handler /* TRAP #6 */
|
71 |
|
|
vector27: .long _asm_exception_handler /* TRAP #7 */
|
72 |
|
|
vector28: .long _asm_exception_handler /* TRAP #8 */
|
73 |
|
|
vector29: .long _asm_exception_handler /* TRAP #9 */
|
74 |
|
|
vector2A: .long _asm_exception_handler /* TRAP #10 */
|
75 |
|
|
vector2B: .long _asm_exception_handler /* TRAP #11 */
|
76 |
|
|
vector2C: .long _asm_exception_handler /* TRAP #12 */
|
77 |
|
|
vector2D: .long _asm_exception_handler /* TRAP #13 */
|
78 |
|
|
vector2E: .long _asm_exception_handler /* TRAP #14 */
|
79 |
|
|
vector2F: .long _asm_exception_handler /* TRAP #15 */
|
80 |
|
|
vector30: .long _asm_exception_handler /* Reserved */
|
81 |
|
|
vector31: .long _asm_exception_handler /* Reserved */
|
82 |
|
|
vector32: .long _asm_exception_handler /* Reserved */
|
83 |
|
|
vector33: .long _asm_exception_handler /* Reserved */
|
84 |
|
|
vector34: .long _asm_exception_handler /* Reserved */
|
85 |
|
|
vector35: .long _asm_exception_handler /* Reserved */
|
86 |
|
|
vector36: .long _asm_exception_handler /* Reserved */
|
87 |
|
|
vector37: .long _asm_exception_handler /* Reserved */
|
88 |
|
|
vector38: .long _asm_exception_handler /* Reserved */
|
89 |
|
|
vector39: .long _asm_exception_handler /* Reserved */
|
90 |
|
|
vector3A: .long _asm_exception_handler /* Reserved */
|
91 |
|
|
vector3B: .long _asm_exception_handler /* Reserved */
|
92 |
|
|
vector3C: .long _asm_exception_handler /* Reserved */
|
93 |
|
|
vector3D: .long _asm_exception_handler /* Reserved */
|
94 |
|
|
vector3E: .long _asm_exception_handler /* Reserved */
|
95 |
|
|
vector3F: .long _asm_exception_handler /* Reserved */
|
96 |
|
|
vector40: .long _asm_exception_handler
|
97 |
|
|
vector41: .long _asm_exception_handler
|
98 |
|
|
vector42: .long _asm_exception_handler
|
99 |
|
|
vector43: .long _asm_exception_handler
|
100 |
|
|
vector44: .long _asm_exception_handler
|
101 |
|
|
vector45: .long _asm_exception_handler
|
102 |
|
|
vector46: .long _asm_exception_handler
|
103 |
|
|
vector47: .long _asm_exception_handler
|
104 |
|
|
vector48: .long _asm_exception_handler
|
105 |
|
|
vector49: .long _asm_exception_handler
|
106 |
|
|
vector4A: .long _asm_exception_handler
|
107 |
|
|
vector4B: .long _asm_exception_handler
|
108 |
|
|
vector4C: .long _asm_exception_handler
|
109 |
|
|
vector4D: .long _asm_exception_handler
|
110 |
|
|
vector4E: .long _asm_exception_handler
|
111 |
|
|
vector4F: .long _asm_exception_handler
|
112 |
|
|
vector50: .long vPortYieldISR
|
113 |
|
|
vector51: .long _asm_exception_handler
|
114 |
|
|
vector52: .long _asm_exception_handler
|
115 |
|
|
vector53: .long _asm_exception_handler
|
116 |
|
|
vector54: .long _asm_exception_handler
|
117 |
|
|
vector55: .long _asm_exception_handler
|
118 |
|
|
vector56: .long _asm_exception_handler
|
119 |
|
|
vector57: .long _asm_exception_handler
|
120 |
|
|
vector58: .long _asm_exception_handler
|
121 |
|
|
vector59: .long _vFECISRHandler
|
122 |
|
|
vector5A: .long _vFECISRHandler
|
123 |
|
|
vector5B: .long _vFECISRHandler
|
124 |
|
|
vector5C: .long _vFECISRHandler
|
125 |
|
|
vector5D: .long _vFECISRHandler
|
126 |
|
|
vector5E: .long _vFECISRHandler
|
127 |
|
|
vector5F: .long _vFECISRHandler
|
128 |
|
|
vector60: .long _asm_exception_handler
|
129 |
|
|
vector61: .long _vFECISRHandler
|
130 |
|
|
vector62: .long _vFECISRHandler
|
131 |
|
|
vector63: .long _vFECISRHandler
|
132 |
|
|
vector64: .long _asm_exception_handler
|
133 |
|
|
vector65: .long _asm_exception_handler
|
134 |
|
|
vector66: .long _asm_exception_handler
|
135 |
|
|
vector67: .long _asm_exception_handler
|
136 |
|
|
vector68: .long _asm_exception_handler
|
137 |
|
|
vector69: .long _asm_exception_handler
|
138 |
|
|
vector6A: .long _asm_exception_handler
|
139 |
|
|
vector6B: .long _asm_exception_handler
|
140 |
|
|
vector6C: .long _asm_exception_handler
|
141 |
|
|
vector6D: .long _asm_exception_handler
|
142 |
|
|
vector6E: .long _asm_exception_handler
|
143 |
|
|
vector6F: .long _asm_exception_handler
|
144 |
|
|
vector70: .long _asm_exception_handler
|
145 |
|
|
vector71: .long _asm_exception_handler
|
146 |
|
|
vector72: .long _asm_exception_handler
|
147 |
|
|
vector73: .long _asm_exception_handler
|
148 |
|
|
vector74: .long _asm_exception_handler
|
149 |
|
|
vector75: .long _asm_exception_handler
|
150 |
|
|
vector76: .long _asm_exception_handler
|
151 |
|
|
vector77: .long _vPIT0InterruptHandler
|
152 |
|
|
vector78: .long _asm_exception_handler
|
153 |
|
|
vector79: .long _asm_exception_handler
|
154 |
|
|
vector7A: .long _asm_exception_handler
|
155 |
|
|
vector7B: .long _asm_exception_handler
|
156 |
|
|
vector7C: .long _asm_exception_handler
|
157 |
|
|
vector7D: .long _asm_exception_handler
|
158 |
|
|
vector7E: .long _asm_exception_handler
|
159 |
|
|
vector7F: .long _asm_exception_handler
|
160 |
|
|
vector80: .long _asm_exception_handler
|
161 |
|
|
vector81: .long _asm_exception_handler
|
162 |
|
|
vector82: .long _asm_exception_handler
|
163 |
|
|
vector83: .long _asm_exception_handler
|
164 |
|
|
vector84: .long _asm_exception_handler
|
165 |
|
|
vector85: .long _asm_exception_handler
|
166 |
|
|
vector86: .long _asm_exception_handler
|
167 |
|
|
vector87: .long _asm_exception_handler
|
168 |
|
|
vector88: .long _asm_exception_handler
|
169 |
|
|
vector89: .long _asm_exception_handler
|
170 |
|
|
vector8A: .long _asm_exception_handler
|
171 |
|
|
vector8B: .long _asm_exception_handler
|
172 |
|
|
vector8C: .long _asm_exception_handler
|
173 |
|
|
vector8D: .long _asm_exception_handler
|
174 |
|
|
vector8E: .long _asm_exception_handler
|
175 |
|
|
vector8F: .long _asm_exception_handler
|
176 |
|
|
vector90: .long _asm_exception_handler
|
177 |
|
|
vector91: .long _asm_exception_handler
|
178 |
|
|
vector92: .long _asm_exception_handler
|
179 |
|
|
vector93: .long _asm_exception_handler
|
180 |
|
|
vector94: .long _asm_exception_handler
|
181 |
|
|
vector95: .long _asm_exception_handler
|
182 |
|
|
vector96: .long _asm_exception_handler
|
183 |
|
|
vector97: .long _asm_exception_handler
|
184 |
|
|
vector98: .long _asm_exception_handler
|
185 |
|
|
vector99: .long _asm_exception_handler
|
186 |
|
|
vector9A: .long _asm_exception_handler
|
187 |
|
|
vector9B: .long _asm_exception_handler
|
188 |
|
|
vector9C: .long _asm_exception_handler
|
189 |
|
|
vector9D: .long _asm_exception_handler
|
190 |
|
|
vector9E: .long _asm_exception_handler
|
191 |
|
|
vector9F: .long _asm_exception_handler
|
192 |
|
|
vectorA0: .long _asm_exception_handler
|
193 |
|
|
vectorA1: .long _asm_exception_handler
|
194 |
|
|
vectorA2: .long _asm_exception_handler
|
195 |
|
|
vectorA3: .long _asm_exception_handler
|
196 |
|
|
vectorA4: .long _asm_exception_handler
|
197 |
|
|
vectorA5: .long _asm_exception_handler
|
198 |
|
|
vectorA6: .long _asm_exception_handler
|
199 |
|
|
vectorA7: .long _asm_exception_handler
|
200 |
|
|
vectorA8: .long _asm_exception_handler
|
201 |
|
|
vectorA9: .long _asm_exception_handler
|
202 |
|
|
vectorAA: .long _asm_exception_handler
|
203 |
|
|
vectorAB: .long _asm_exception_handler
|
204 |
|
|
vectorAC: .long _asm_exception_handler
|
205 |
|
|
vectorAD: .long _asm_exception_handler
|
206 |
|
|
vectorAE: .long _asm_exception_handler
|
207 |
|
|
vectorAF: .long _asm_exception_handler
|
208 |
|
|
vectorB0: .long _asm_exception_handler
|
209 |
|
|
vectorB1: .long _asm_exception_handler
|
210 |
|
|
vectorB2: .long _asm_exception_handler
|
211 |
|
|
vectorB3: .long _asm_exception_handler
|
212 |
|
|
vectorB4: .long _asm_exception_handler
|
213 |
|
|
vectorB5: .long _asm_exception_handler
|
214 |
|
|
vectorB6: .long _asm_exception_handler
|
215 |
|
|
vectorB7: .long _asm_exception_handler
|
216 |
|
|
vectorB8: .long _asm_exception_handler
|
217 |
|
|
vectorB9: .long _asm_exception_handler
|
218 |
|
|
vectorBA: .long _asm_exception_handler
|
219 |
|
|
vectorBB: .long _asm_exception_handler
|
220 |
|
|
vectorBC: .long _asm_exception_handler
|
221 |
|
|
vectorBD: .long _asm_exception_handler
|
222 |
|
|
vectorBE: .long _asm_exception_handler
|
223 |
|
|
vectorBF: .long _asm_exception_handler
|
224 |
|
|
|
225 |
|
|
.org 0x400
|
226 |
|
|
|
227 |
|
|
/*
|
228 |
|
|
* CFM Flash Configuration Field
|
229 |
|
|
*/
|
230 |
|
|
KEY_UPPER: .long 0x00000000
|
231 |
|
|
KEY_LOWER: .long 0x00000000
|
232 |
|
|
CFMPROT: .long 0x00000000
|
233 |
|
|
CFMSACC: .long 0x00000000
|
234 |
|
|
CFMDACC: .long 0x00000000
|
235 |
|
|
CFMSEC: .long 0x00000000
|
236 |
|
|
|
237 |
|
|
|
238 |
|
|
/********************************************************************/
|
239 |
|
|
|
240 |
|
|
|
241 |
|
|
|
242 |
|
|
.end
|