Subversion Repositories shark

Rev

Rev 1000 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1063 tullio 1
 
2
/*
3
 * This program is free software; you can redistribute it and/or modify
4
 * it under the terms of the GNU General Public License as published by
5
 * the Free Software Foundation; either version 2 of the License, or
6
 * (at your option) any later version.
7
 *
8
 * This program is distributed in the hope that it will be useful,
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 * GNU General Public License for more details.
12
 *
13
 * You should have received a copy of the GNU General Public License
14
 * along with this program; if not, write to the Free Software
15
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
 *
17
 */
18
 
42 pj 19
#ifndef __LL_I386_INT__
20
#define __LL_I386_INT__
21
 
22
#include <ll/i386/linkage.h>
23
 
24
#define INT(n) \
25
.globl SYMBOL_NAME(h##n) ; \
26
SYMBOL_NAME_LABEL(h##n)  ; \
1000 trimarchi 27
        call debug_info  ; \
42 pj 28
        pushal           ; \
29
        movl $##n, %eax  ; \
30
        jmp ll_handler
31
 
32
#define INT_1(n) \
33
.globl SYMBOL_NAME(h##n) ; \
34
SYMBOL_NAME_LABEL(h##n)  ; \
35
        pushal           ; \
36
        movl $##n, %eax  ; \
37
        jmp ll_handler_master_pic
38
 
39
#define INT_2(n) \
40
.globl SYMBOL_NAME(h##n) ; \
41
SYMBOL_NAME_LABEL(h##n)  ; \
42
        pushal           ; \
43
        movl $##n, %eax  ; \
44
        jmp ll_handler_slave_pic
45
 
443 giacomo 46
#define VM86(n) \
47
.globl SYMBOL_NAME(h##n) ; \
48
SYMBOL_NAME_LABEL(h##n)  ; \
49
        pushal           ; \
50
        jmp ll_handler_vm86
51
 
42 pj 52
#define EXC(n) \
53
.globl SYMBOL_NAME(exc##n) ; \
54
SYMBOL_NAME_LABEL(exc##n)  ; \
55
        movl    $##n, %eax ; \
56
        jmp     ll_handler2
57
#endif
444 giacomo 58
 
59
#define NONE(n) \
60
.globl SYMBOL_NAME(h##n)   ; \
61
SYMBOL_NAME_LABEL(h##n)    ; \
62
        iret               ; \
63
#endif
64