trap.h revision 1.2 1 /* $NetBSD: trap.h,v 1.2 2011/01/18 01:02:54 matt Exp $ */
2 /*-
3 * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to The NetBSD Foundation
7 * by Raytheon BBN Technologies Corp and Defense Advanced Research Projects
8 * Agency and which was developed by Matt Thomas of 3am Software Foundry.
9 *
10 * This material is based upon work supported by the Defense Advanced Research
11 * Projects Agency and Space and Naval Warfare Systems Center, Pacific, under
12 * Contract No. N66001-09-C-2073.
13 * Approved for Public Release, Distribution Unlimited
14 *
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions
17 * are met:
18 * 1. Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 * 2. Redistributions in binary form must reproduce the above copyright
21 * notice, this list of conditions and the following disclaimer in the
22 * documentation and/or other materials provided with the distribution.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
25 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
26 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
27 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
28 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * POSSIBILITY OF SUCH DAMAGE.
35 */
36
37 #ifndef _POWERPC_BOOKE_TRAP_H_
38 #define _POWERPC_BOOKE_TRAP_H_
39
40 enum ppc_booke_exceptions {
41 T_CRITIAL_INPUT=0,
42 T_MACHINE_CHECK=1,
43 T_DSI=2,
44 T_ISI=3,
45 T_EXTERNAL_INPUT=4,
46 T_ALIGNMENT=5,
47 T_PROGRAM=6,
48 T_FP_UNAVAILABLE=7,
49 T_SYSTEM_CALL=8,
50 T_AP_UNAVAILABLE=9,
51 T_DECREMENTER=10,
52 T_FIXED_INTERVAL=11,
53 T_WATCHDOG=12,
54 T_DATA_TLB_ERROR=13,
55 T_INSTRUCTION_TLB_ERROR=14,
56 T_DEBUG=15,
57 T_SPE_UNAVAILABLE=32,
58 T_EMBEDDED_FP_DATA=33,
59 T_EMBEDDED_FP_ROUND=34,
60 T_EMBEDDED_PERF_MONITOR=35,
61 T_AST=64,
62 };
63
64 #endif /* _POWERPC_BOOKE_TRAP_H_ */
65