1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
|
/*
ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
2011,2012 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
ChibiOS/RT is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
ChibiOS/RT is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file SPC560Pxx/vectors.s
* @brief SPC560Pxx vectors table.
*
* @addtogroup PPC_CORE
* @{
*/
/*
* Imports the PPC configuration headers.
*/
#define _FROM_ASM_
#include "chconf.h"
#include "chcore.h"
#if !defined(__DOXYGEN__)
/* BAM info, SWT off, WTE off, VLE from settings.*/
.section .bam, "ax"
#if PPC_USE_VLE
.long 0x015A0000
#else
.long 0x005A0000
#endif
.long _boot_address
/* Software vectors table. The vectors are accessed from the IVOR4
handler only. In order to declare an interrupt handler just create
a function withe the same name of a vector, the symbol will
override the weak symbol declared here.*/
.section .vectors, "ax"
.align 4
.globl _vectors
_vectors:
.long vector0
.long vector1
.long vector2
.long vector3
.long vector4
.long vector5
.long vector6
.long vector7
.long vector8
.long vector9
.long vector10
.long vector11
.long vector12
.long vector13
.long vector14
.long vector15
.long vector16
.long vector17
.long vector18
.long vector19
.long vector20
.long vector21
.long vector22
.long vector23
.long vector24
.long vector25
.long vector26
.long vector27
.long vector28
.long vector29
.long vector30
.long vector31
.long vector32
.long vector33
.long vector34
.long vector35
.long vector36
.long vector37
.long vector38
.long vector39
.long vector40
.long vector41
.long vector42
.long vector43
.long vector44
.long vector45
.long vector46
.long vector47
.long vector48
.long vector49
.long vector50
.long vector51
.long vector52
.long vector53
.long vector54
.long vector55
.long vector56
.long vector57
.long vector58
.long vector59
.long vector60
.long vector61
.long vector62
.long vector63
.long vector64
.long vector65
.long vector66
.long vector67
.long vector68
.long vector69
.long vector70
.long vector71
.long vector72
.long vector73
.long vector74
.long vector75
.long vector76
.long vector77
.long vector78
.long vector79
.long vector80
.long vector81
.long vector82
.long vector83
.long vector84
.long vector85
.long vector86
.long vector87
.long vector88
.long vector89
.long vector90
.long vector91
.long vector92
.long vector93
.long vector94
.long vector95
.long vector96
.long vector97
.long vector98
.long vector99
.long vector100
.long vector101
.long vector102
.long vector103
.long vector104
.long vector105
.long vector106
.long vector107
.long vector108
.long vector109
.long vector110
.long vector111
.long vector112
.long vector113
.long vector114
.long vector115
.long vector116
.long vector117
.long vector118
.long vector119
.long vector120
.long vector121
.long vector122
.long vector123
.long vector124
.long vector125
.long vector126
.long vector127
.long vector128
.long vector129
.long vector130
.long vector131
.long vector132
.long vector133
.long vector134
.long vector135
.long vector136
.long vector137
.long vector138
.long vector139
.long vector140
.long vector141
.long vector142
.long vector143
.long vector144
.long vector145
.long vector146
.long vector147
.long vector148
.long vector149
.long vector150
.long vector151
.long vector152
.long vector153
.long vector154
.long vector155
.long vector156
.long vector157
.long vector158
.long vector159
.long vector160
.long vector161
.long vector162
.long vector163
.long vector164
.long vector165
.long vector166
.long vector167
.long vector168
.long vector169
.long vector170
.long vector171
.long vector172
.long vector173
.long vector174
.long vector175
.long vector176
.long vector177
.long vector178
.long vector179
.long vector180
.long vector181
.long vector182
.long vector183
.long vector184
.long vector185
.long vector186
.long vector187
.long vector188
.long vector189
.long vector190
.long vector191
.long vector192
.long vector193
.long vector194
.long vector195
.long vector196
.long vector197
.long vector198
.long vector199
.long vector200
.long vector201
.long vector202
.long vector203
.long vector204
.long vector205
.long vector206
.long vector207
.long vector208
.long vector209
.long vector210
.long vector211
.long vector212
.long vector213
.long vector214
.long vector215
.long vector216
.long vector217
.long vector218
.long vector219
.long vector220
.long vector221
.long vector222
.long vector223
.long vector224
.long vector225
.long vector226
.long vector227
.long vector228
.long vector229
.long vector230
.long vector231
.long vector232
.long vector233
.long vector234
.long vector235
.long vector236
.long vector237
.long vector238
.long vector239
.long vector240
.long vector241
.long vector242
.long vector243
.long vector244
.long vector245
.long vector246
.long vector247
.long vector248
.long vector249
.long vector250
.long vector251
.long vector252
.long vector253
.long vector254
.long vector255
.long vector256
.long vector257
.long vector258
.long vector259
.long vector260
.text
.align 2
.weak vector0
vector0:
.weak vector1
vector1:
.weak vector2
vector2:
.weak vector3
vector3:
.weak vector4
vector4:
.weak vector5
vector5:
.weak vector6
vector6:
.weak vector7
vector7:
.weak vector8
vector8:
.weak vector9
vector9:
.weak vector10
vector10:
.weak vector11
vector11:
.weak vector12
vector12:
.weak vector13
vector13:
.weak vector14
vector14:
.weak vector15
vector15:
.weak vector16
vector16:
.weak vector17
vector17:
.weak vector18
vector18:
.weak vector19
vector19:
.weak vector20
vector20:
.weak vector21
vector21:
.weak vector22
vector22:
.weak vector23
vector23:
.weak vector24
vector24:
.weak vector25
vector25:
.weak vector26
vector26:
.weak vector27
vector27:
.weak vector28
vector28:
.weak vector29
vector29:
.weak vector30
vector30:
.weak vector31
vector31:
.weak vector32
vector32:
.weak vector33
vector33:
.weak vector34
vector34:
.weak vector35
vector35:
.weak vector36
vector36:
.weak vector37
vector37:
.weak vector38
vector38:
.weak vector39
vector39:
.weak vector40
vector40:
.weak vector41
vector41:
.weak vector42
vector42:
.weak vector43
vector43:
.weak vector44
vector44:
.weak vector45
vector45:
.weak vector46
vector46:
.weak vector47
vector47:
.weak vector48
vector48:
.weak vector49
vector49:
.weak vector50
vector50:
.weak vector51
vector51:
.weak vector52
vector52:
.weak vector53
vector53:
.weak vector54
vector54:
.weak vector55
vector55:
.weak vector56
vector56:
.weak vector57
vector57:
.weak vector58
vector58:
.weak vector59
vector59:
.weak vector60
vector60:
.weak vector61
vector61:
.weak vector62
vector62:
.weak vector63
vector63:
.weak vector64
vector64:
.weak vector65
vector65:
.weak vector66
vector66:
.weak vector67
vector67:
.weak vector68
vector68:
.weak vector69
vector69:
.weak vector70
vector70:
.weak vector71
vector71:
.weak vector72
vector72:
.weak vector73
vector73:
.weak vector74
vector74:
.weak vector75
vector75:
.weak vector76
vector76:
.weak vector77
vector77:
.weak vector78
vector78:
.weak vector79
vector79:
.weak vector80
vector80:
.weak vector81
vector81:
.weak vector82
vector82:
.weak vector83
vector83:
.weak vector84
vector84:
.weak vector85
vector85:
.weak vector86
vector86:
.weak vector87
vector87:
.weak vector88
vector88:
.weak vector89
vector89:
.weak vector90
vector90:
.weak vector91
vector91:
.weak vector92
vector92:
.weak vector93
vector93:
.weak vector94
vector94:
.weak vector95
vector95:
.weak vector96
vector96:
.weak vector97
vector97:
.weak vector98
vector98:
.weak vector99
vector99:
.weak vector100
vector100:
.weak vector101
vector101:
.weak vector102
vector102:
.weak vector103
vector103:
.weak vector104
vector104:
.weak vector105
vector105:
.weak vector106
vector106:
.weak vector107
vector107:
.weak vector108
vector108:
.weak vector109
vector109:
.weak vector110
vector110:
.weak vector111
vector111:
.weak vector112
vector112:
.weak vector113
vector113:
.weak vector114
vector114:
.weak vector115
vector115:
.weak vector116
vector116:
.weak vector117
vector117:
.weak vector118
vector118:
.weak vector119
vector119:
.weak vector120
vector120:
.weak vector121
vector121:
.weak vector122
vector122:
.weak vector123
vector123:
.weak vector124
vector124:
.weak vector125
vector125:
.weak vector126
vector126:
.weak vector127
vector127:
.weak vector128
vector128:
.weak vector129
vector129:
.weak vector130
vector130:
.weak vector131
vector131:
.weak vector132
vector132:
.weak vector133
vector133:
.weak vector134
vector134:
.weak vector135
vector135:
.weak vector136
vector136:
.weak vector137
vector137:
.weak vector138
vector138:
.weak vector139
vector139:
.weak vector140
vector140:
.weak vector141
vector141:
.weak vector142
vector142:
.weak vector143
vector143:
.weak vector144
vector144:
.weak vector145
vector145:
.weak vector146
vector146:
.weak vector147
vector147:
.weak vector148
vector148:
.weak vector149
vector149:
.weak vector150
vector150:
.weak vector151
vector151:
.weak vector152
vector152:
.weak vector153
vector153:
.weak vector154
vector154:
.weak vector155
vector155:
.weak vector156
vector156:
.weak vector157
vector157:
.weak vector158
vector158:
.weak vector159
vector159:
.weak vector160
vector160:
.weak vector161
vector161:
.weak vector162
vector162:
.weak vector163
vector163:
.weak vector164
vector164:
.weak vector165
vector165:
.weak vector166
vector166:
.weak vector167
vector167:
.weak vector168
vector168:
.weak vector169
vector169:
.weak vector170
vector170:
.weak vector171
vector171:
.weak vector172
vector172:
.weak vector173
vector173:
.weak vector174
vector174:
.weak vector175
vector175:
.weak vector176
vector176:
.weak vector177
vector177:
.weak vector178
vector178:
.weak vector179
vector179:
.weak vector180
vector180:
.weak vector181
vector181:
.weak vector182
vector182:
.weak vector183
vector183:
.weak vector184
vector184:
.weak vector185
vector185:
.weak vector186
vector186:
.weak vector187
vector187:
.weak vector188
vector188:
.weak vector189
vector189:
.weak vector190
vector190:
.weak vector191
vector191:
.weak vector192
vector192:
.weak vector193
vector193:
.weak vector194
vector194:
.weak vector195
vector195:
.weak vector196
vector196:
.weak vector197
vector197:
.weak vector198
vector198:
.weak vector199
vector199:
.weak vector200
vector200:
.weak vector201
vector201:
.weak vector202
vector202:
.weak vector203
vector203:
.weak vector204
vector204:
.weak vector205
vector205:
.weak vector206
vector206:
.weak vector207
vector207:
.weak vector208
vector208:
.weak vector209
vector209:
.weak vector210
vector210:
.weak vector211
vector211:
.weak vector212
vector212:
.weak vector213
vector213:
.weak vector214
vector214:
.weak vector215
vector215:
.weak vector216
vector216:
.weak vector217
vector217:
.weak vector218
vector218:
.weak vector219
vector219:
.weak vector220
vector220:
.weak vector221
vector221:
.weak vector222
vector222:
.weak vector223
vector223:
.weak vector224
vector224:
.weak vector225
vector225:
.weak vector226
vector226:
.weak vector227
vector227:
.weak vector228
vector228:
.weak vector229
vector229:
.weak vector230
vector230:
.weak vector231
vector231:
.weak vector232
vector232:
.weak vector233
vector233:
.weak vector234
vector234:
.weak vector235
vector235:
.weak vector236
vector236:
.weak vector237
vector237:
.weak vector238
vector238:
.weak vector239
vector239:
.weak vector240
vector240:
.weak vector241
vector241:
.weak vector242
vector242:
.weak vector243
vector243:
.weak vector244
vector244:
.weak vector245
vector245:
.weak vector246
vector246:
.weak vector247
vector247:
.weak vector248
vector248:
.weak vector249
vector249:
.weak vector250
vector250:
.weak vector251
vector251:
.weak vector252
vector252:
.weak vector253
vector253:
.weak vector254
vector254:
.weak vector255
vector255:
.weak vector256
vector256:
.weak vector257
vector257:
.weak vector258
vector258:
.weak vector259
vector259:
.weak vector260
vector260:
.weak _unhandled_irq
.type _unhandled_irq, @function
_unhandled_irq:
b _unhandled_irq
#endif /* !defined(__DOXYGEN__) */
/** @} */
|