]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/powerpc/include/trap_booke.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / powerpc / include / trap_booke.h
1 /*-
2  * Copyright (C) 2006 Semihalf, Rafal Jaworowski <raj@semihalf.com>
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  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  * 3. The name of the author may not be used to endorse or promote products
14  *    derived from this software without specific prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
19  * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
21  * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  *
27  * $FreeBSD$
28  */
29
30 #ifndef _POWERPC_TRAP_H_
31 #define _POWERPC_TRAP_H_
32
33 #define EXC_CRIT        0
34 #define EXC_MCHK        1
35 #define EXC_DSI         2
36 #define EXC_ISI         3
37 #define EXC_EXI         4
38 #define EXC_ALI         5
39 #define EXC_PGM         6
40 #define EXC_FPU         7       /* e500: not supported */
41 #define EXC_SC          8
42 #define EXC_APU         9       /* e500: not supported */
43 #define EXC_DECR        10
44 #define EXC_FIT         11
45 #define EXC_WDOG        12
46 #define EXC_DTMISS      13
47 #define EXC_ITMISS      14
48 #define EXC_DEBUG       15
49
50 #define EXC_SAU         32      /* e500-specific: SPE APU unavailable */
51 #define EXC_PERF        35      /* e500-specific: Performance monitor */
52
53 #define EXC_LAST        255
54
55 #ifndef LOCORE
56 struct  trapframe;
57 void    trap(struct trapframe *);
58 #endif
59
60 #endif  /* _POWERPC_TRAP_H_ */