-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhandlers.S
60 lines (58 loc) · 1008 Bytes
/
handlers.S
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
#define SERV_EXC_TASK(id) \
.text; \
trap##id: \
pushl $(0); \
pushl $(id); \
cld; /* for gcc */ \
call trap_handler; \
addl $(8),%esp; \
iret; \
jmp trap##id; \
.data; \
.long trap##id
#define SERV_ERR_TASK(id) \
.text; \
trap##id: \
pushl $(id); \
cld; /* for gcc */ \
call trap_handler; \
addl $(8),%esp; \
iret; \
jmp trap##id; \
.data; \
.long trap##id
.data
.globl exception_handler_tasks
exception_handler_tasks:
SERV_EXC_TASK(0)
SERV_EXC_TASK(1)
SERV_EXC_TASK(2)
SERV_EXC_TASK(3)
SERV_EXC_TASK(4)
SERV_EXC_TASK(5)
SERV_EXC_TASK(6)
SERV_EXC_TASK(7)
SERV_ERR_TASK(8)
SERV_EXC_TASK(9)
SERV_ERR_TASK(10)
SERV_ERR_TASK(11)
SERV_ERR_TASK(12)
SERV_ERR_TASK(13)
SERV_ERR_TASK(14)
SERV_EXC_TASK(15)
SERV_EXC_TASK(16)
SERV_ERR_TASK(17)
SERV_EXC_TASK(18)
SERV_EXC_TASK(19)
SERV_EXC_TASK(20)
SERV_EXC_TASK(21)
SERV_EXC_TASK(22)
SERV_EXC_TASK(23)
SERV_EXC_TASK(24)
SERV_EXC_TASK(25)
SERV_EXC_TASK(26)
SERV_EXC_TASK(27)
SERV_EXC_TASK(28)
SERV_EXC_TASK(29)
SERV_EXC_TASK(30)
SERV_EXC_TASK(31)