Subversion Repositories shark

Rev

Rev 443 | Details | Compare with Previous | 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
 
443 giacomo 27
#define VM86(n) \
28
.globl SYMBOL_NAME(h##n) ; \
29
SYMBOL_NAME_LABEL(h##n)  ; \
30
        pushal           ; \
31
        jmp ll_handler_vm86
32
 
42 pj 33
#define EXC(n) \
34
.globl SYMBOL_NAME(exc##n) ; \
35
SYMBOL_NAME_LABEL(exc##n)  ; \
36
        movl    $##n, %eax ; \
37
        jmp     ll_handler2
38
#endif
444 giacomo 39
 
40
#define NONE(n) \
41
.globl SYMBOL_NAME(h##n)   ; \
42
SYMBOL_NAME_LABEL(h##n)    ; \
43
        iret               ; \
44
#endif
45