Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
42 | pj | 1 | #ifndef __LL_I386_INT__ |
2 | #define __LL_I386_INT__ |
||
3 | |||
4 | #include <ll/i386/linkage.h> |
||
5 | |||
6 | #define INT(n) \ |
||
7 | .globl SYMBOL_NAME(h##n) ; \ |
||
8 | SYMBOL_NAME_LABEL(h##n) ; \ |
||
9 | pushal ; \ |
||
10 | movl $##n, %eax ; \ |
||
11 | jmp ll_handler |
||
12 | |||
13 | #define INT_1(n) \ |
||
14 | .globl SYMBOL_NAME(h##n) ; \ |
||
15 | SYMBOL_NAME_LABEL(h##n) ; \ |
||
16 | pushal ; \ |
||
17 | movl $##n, %eax ; \ |
||
18 | jmp ll_handler_master_pic |
||
19 | |||
20 | #define INT_2(n) \ |
||
21 | .globl SYMBOL_NAME(h##n) ; \ |
||
22 | SYMBOL_NAME_LABEL(h##n) ; \ |
||
23 | pushal ; \ |
||
24 | movl $##n, %eax ; \ |
||
25 | jmp ll_handler_slave_pic |
||
26 | |||
27 | #define EXC(n) \ |
||
28 | .globl SYMBOL_NAME(exc##n) ; \ |
||
29 | SYMBOL_NAME_LABEL(exc##n) ; \ |
||
30 | movl $##n, %eax ; \ |
||
31 | jmp ll_handler2 |
||
32 | #endif |