Subversion Repositories HelenOS

Rev

Rev 212 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 212 Rev 220
1
#
1
#
2
# Copyright (C) 2005 Jakub Vana
2
# Copyright (C) 2005 Jakub Vana
3
# All rights reserved.
3
# All rights reserved.
4
#
4
#
5
# Redistribution and use in source and binary forms, with or without
5
# Redistribution and use in source and binary forms, with or without
6
# modification, are permitted provided that the following conditions
6
# modification, are permitted provided that the following conditions
7
# are met:
7
# are met:
8
#
8
#
9
# - Redistributions of source code must retain the above copyright
9
# - Redistributions of source code must retain the above copyright
10
#   notice, this list of conditions and the following disclaimer.
10
#   notice, this list of conditions and the following disclaimer.
11
# - Redistributions in binary form must reproduce the above copyright
11
# - Redistributions in binary form must reproduce the above copyright
12
#   notice, this list of conditions and the following disclaimer in the
12
#   notice, this list of conditions and the following disclaimer in the
13
#   documentation and/or other materials provided with the distribution.
13
#   documentation and/or other materials provided with the distribution.
14
# - The name of the author may not be used to endorse or promote products
14
# - The name of the author may not be used to endorse or promote products
15
#   derived from this software without specific prior written permission.
15
#   derived from this software without specific prior written permission.
16
#
16
#
17
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
#
27
#
28
 
28
 
29
 
29
 
30
 
30
 
31
.macro Handler o h
31
.macro Handler o h
32
.org IVT + \o
32
.org IVT + \o
33
br \h;;
33
br \h;;
34
.endm
34
.endm
35
 
35
 
-
 
36
.macro Handler2 o 
-
 
37
.org IVT + \o
-
 
38
mov r12 = \o
-
 
39
br universal_handler;;
-
 
40
.endm
-
 
41
 
36
 
42
 
37
 
43
 
38
.global IVT
44
.global IVT
39
.align 32768
45
.align 32768
40
IVT:
46
IVT:
41
 
47
 
-
 
48
 
-
 
49
Handler2 0x0000
-
 
50
Handler2 0x0400
-
 
51
Handler2 0x0800
-
 
52
Handler2 0x0c00
-
 
53
Handler2 0x1000
-
 
54
Handler2 0x1400
-
 
55
Handler2 0x1800
-
 
56
Handler2 0x1c00
-
 
57
Handler2 0x2000
-
 
58
Handler2 0x2400
-
 
59
Handler2 0x2800
42
Handler 0x2c00 break_instruction
60
Handler 0x2c00 break_instruction
-
 
61
Handler2 0x3000
-
 
62
Handler2 0x3400
-
 
63
Handler2 0x3800
-
 
64
Handler2 0x3c00
-
 
65
Handler2 0x4000
-
 
66
Handler2 0x4400
-
 
67
Handler2 0x4800
-
 
68
Handler2 0x4c00
-
 
69
 
-
 
70
Handler2 0x5000
-
 
71
Handler2 0x5100
-
 
72
Handler2 0x5200
-
 
73
Handler2 0x5300
43
Handler 0x5400 general_exception
74
Handler 0x5400 general_exception
-
 
75
Handler2 0x5500
-
 
76
Handler2 0x5600
-
 
77
Handler2 0x5700
-
 
78
Handler2 0x5800
-
 
79
Handler2 0x5900
-
 
80
Handler2 0x5a00
-
 
81
Handler2 0x5b00
-
 
82
Handler2 0x5c00
-
 
83
Handler2 0x5d00
-
 
84
Handler2 0x5e00
-
 
85
Handler2 0x5f00
-
 
86
 
-
 
87
Handler2 0x6000
-
 
88
Handler2 0x6100
-
 
89
Handler2 0x6200
-
 
90
Handler2 0x6300
-
 
91
Handler2 0x6400
-
 
92
Handler2 0x6500
-
 
93
Handler2 0x6600
-
 
94
Handler2 0x6700
-
 
95
Handler2 0x6800
-
 
96
Handler2 0x6900
-
 
97
Handler2 0x6a00
-
 
98
Handler2 0x6b00
-
 
99
Handler2 0x6c00
-
 
100
Handler2 0x6d00
-
 
101
Handler2 0x6e00
-
 
102
Handler2 0x6f00
-
 
103
 
-
 
104
Handler2 0x7000
-
 
105
Handler2 0x7100
-
 
106
Handler2 0x7200
-
 
107
Handler2 0x7300
-
 
108
Handler2 0x7400
-
 
109
Handler2 0x7500
-
 
110
Handler2 0x7600
-
 
111
Handler2 0x7700
-
 
112
Handler2 0x7800
-
 
113
Handler2 0x7900
-
 
114
Handler2 0x7a00
-
 
115
Handler2 0x7b00
-
 
116
Handler2 0x7c00
-
 
117
Handler2 0x7d00
-
 
118
Handler2 0x7e00
-
 
119
Handler2 0x7f00
-
 
120
 
-
 
121
 
-
 
122
 
-
 
123
 
44
 
124
 
45
 
125
 
46
 
126
 
47
 
127
 
48
.align 32768
128
.align 32768
49
.byte 0
129
.byte 0
50
 
130