forked from xobs/fernly
-
Notifications
You must be signed in to change notification settings - Fork 2
/
vectors.c
48 lines (40 loc) · 788 Bytes
/
vectors.c
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
#include "serial.h"
#include "utils.h"
void reset_handler(void) {
extern int main(int argc, char **argv);
serial_puts("Reset exception\n");
main(1, 0);
return;
}
void undef_handler(void) {
serial_puts("Undefined instruction exception\n");
return;
}
void swi_handler(void) {
serial_puts("SWI exception\n");
return;
}
void prefetch_abort_handler(void) {
serial_puts("Prefetch abort exception\n");
while(1);
return;
}
void data_abort_handler(void) {
serial_puts("Data abort exception\n");
while(1);
return;
}
void reserved_handler(void) {
serial_puts("Handled some IRQ that shouldn't exist\n");
while(1);
return;
}
void irq_handler(void) {
serial_puts("Handling IRQ...\n");
return;
}
void fiq_handler(void) {
serial_puts("Handled FIQ\n");
// while(1);
return;
}