source: mainline/arch/ia64/src/ivt.S@ c7bb8b05

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since c7bb8b05 was 75d5721, checked in by Jakub Vana <jakub.vana@…>, 20 years ago

Universal exception handler and all exceptions routine to call it added

  • Property mode set to 100644
File size: 2.7 KB
Line 
1#
2# Copyright (C) 2005 Jakub Vana
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions
7# are met:
8#
9# - Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer.
11# - Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the
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
15# derived from this software without specific prior written permission.
16#
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
19# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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
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
26# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27#
28
29
30
31.macro Handler o h
32.org IVT + \o
33br \h;;
34.endm
35
36.macro Handler2 o
37.org IVT + \o
38mov r12 = \o
39br universal_handler;;
40.endm
41
42
43
44.global IVT
45.align 32768
46IVT:
47
48
49Handler2 0x0000
50Handler2 0x0400
51Handler2 0x0800
52Handler2 0x0c00
53Handler2 0x1000
54Handler2 0x1400
55Handler2 0x1800
56Handler2 0x1c00
57Handler2 0x2000
58Handler2 0x2400
59Handler2 0x2800
60Handler 0x2c00 break_instruction
61Handler2 0x3000
62Handler2 0x3400
63Handler2 0x3800
64Handler2 0x3c00
65Handler2 0x4000
66Handler2 0x4400
67Handler2 0x4800
68Handler2 0x4c00
69
70Handler2 0x5000
71Handler2 0x5100
72Handler2 0x5200
73Handler2 0x5300
74Handler 0x5400 general_exception
75Handler2 0x5500
76Handler2 0x5600
77Handler2 0x5700
78Handler2 0x5800
79Handler2 0x5900
80Handler2 0x5a00
81Handler2 0x5b00
82Handler2 0x5c00
83Handler2 0x5d00
84Handler2 0x5e00
85Handler2 0x5f00
86
87Handler2 0x6000
88Handler2 0x6100
89Handler2 0x6200
90Handler2 0x6300
91Handler2 0x6400
92Handler2 0x6500
93Handler2 0x6600
94Handler2 0x6700
95Handler2 0x6800
96Handler2 0x6900
97Handler2 0x6a00
98Handler2 0x6b00
99Handler2 0x6c00
100Handler2 0x6d00
101Handler2 0x6e00
102Handler2 0x6f00
103
104Handler2 0x7000
105Handler2 0x7100
106Handler2 0x7200
107Handler2 0x7300
108Handler2 0x7400
109Handler2 0x7500
110Handler2 0x7600
111Handler2 0x7700
112Handler2 0x7800
113Handler2 0x7900
114Handler2 0x7a00
115Handler2 0x7b00
116Handler2 0x7c00
117Handler2 0x7d00
118Handler2 0x7e00
119Handler2 0x7f00
120
121
122
123
124
125
126
127
128.align 32768
129.byte 0
Note: See TracBrowser for help on using the repository browser.