Subversion Repositories shark

Rev

Rev 444 | 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)  ; \
1000 trimarchi 9
        call debug_info  ; \
42 pj 10
        pushal           ; \
11
        movl $##n, %eax  ; \
12
        jmp ll_handler
13
 
14
#define INT_1(n) \
15
.globl SYMBOL_NAME(h##n) ; \
16
SYMBOL_NAME_LABEL(h##n)  ; \
17
        pushal           ; \
18
        movl $##n, %eax  ; \
19
        jmp ll_handler_master_pic
20
 
21
#define INT_2(n) \
22
.globl SYMBOL_NAME(h##n) ; \
23
SYMBOL_NAME_LABEL(h##n)  ; \
24
        pushal           ; \
25
        movl $##n, %eax  ; \
26
        jmp ll_handler_slave_pic
27
 
443 giacomo 28
#define VM86(n) \
29
.globl SYMBOL_NAME(h##n) ; \
30
SYMBOL_NAME_LABEL(h##n)  ; \
31
        pushal           ; \
32
        jmp ll_handler_vm86
33
 
42 pj 34
#define EXC(n) \
35
.globl SYMBOL_NAME(exc##n) ; \
36
SYMBOL_NAME_LABEL(exc##n)  ; \
37
        movl    $##n, %eax ; \
38
        jmp     ll_handler2
39
#endif
444 giacomo 40
 
41
#define NONE(n) \
42
.globl SYMBOL_NAME(h##n)   ; \
43
SYMBOL_NAME_LABEL(h##n)    ; \
44
        iret               ; \
45
#endif
46