Chameleon

Chameleon Svn Source Tree

Root/trunk/i386/include/mach/ppc/exception.h

1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
14 *
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
17 *
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27 */
28/*
29 * @OSF_COPYRIGHT@
30 */
31/*
32 * Copyright (c) 1990, 1991, 1992, The University of Utah and
33 * the Center for Software Science at the University of Utah (CSS).
34 * All rights reserved.
35 *
36 * Permission to use, copy, modify and distribute this software is hereby
37 * granted provided that (1) source code retains these copyright, permission,
38 * and disclaimer notices, and (2) redistributions including binaries
39 * reproduce the notices in supporting documentation, and (3) all advertising
40 * materials mentioning features or use of this software display the following
41 * acknowledgement: ``This product includes software developed by the Center
42 * for Software Science at the University of Utah.''
43 *
44 * THE UNIVERSITY OF UTAH AND CSS ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
45 * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSS DISCLAIM ANY LIABILITY OF
46 * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
47 *
48 * CSS requests users of this software to return to css-dist@cs.utah.edu any
49 * improvements that they make and grant CSS redistribution rights.
50 *
51 * Utah $Hdr: $
52 */
53
54#ifndef_MACH_PPC_EXCEPTION_H_
55#define _MACH_PPC_EXCEPTION_H_
56
57#defineEXC_TYPES_COUNT11/* incl. illegal exception 0 */
58
59#define EXCEPTION_CODE_MAX 2 /* elements in vector (code+subcode) */
60/*
61 *EXC_BAD_INSTRUCTION
62 */
63
64#define EXC_PPC_INVALID_SYSCALL1 /* invalid syscall number */
65#define EXC_PPC_UNIPL_INST2 /* unimplemented instruction */
66#define EXC_PPC_PRIVINST3 /* priviledged instruction */
67#define EXC_PPC_PRIVREG4 /* priviledged register */
68#define EXC_PPC_TRACE5 /* trace/single-step */
69#define EXC_PPC_PERFMON 6 /* performance monitor */
70
71/*
72 *EXC_BAD_ACCESS
73 *Note: do not conflict with kern_return_t values returned by vm_fault
74 */
75
76#define EXC_PPC_VM_PROT_READ0x101 /* error reading syscall args */
77#define EXC_PPC_BADSPACE0x102 /* bad space referenced */
78#define EXC_PPC_UNALIGNED0x103 /* unaligned data reference */
79
80/*
81 *EXC_ARITHMETIC
82 */
83
84#define EXC_PPC_OVERFLOW1 /* integer overflow */
85#define EXC_PPC_ZERO_DIVIDE2 /* integer divide by zero */
86#define EXC_PPC_FLT_INEXACT3 /* IEEE inexact exception */
87#define EXC_PPC_FLT_ZERO_DIVIDE4 /* IEEE zero divide */
88#define EXC_PPC_FLT_UNDERFLOW5 /* IEEE floating underflow */
89#define EXC_PPC_FLT_OVERFLOW6 /* IEEE floating overflow */
90#define EXC_PPC_FLT_NOT_A_NUMBER7 /* IEEE not a number */
91
92/*
93 * EXC_PPC_NOEMULATION should go away when we add software emulation
94 * for floating point. Right now we don't support this.
95 */
96
97#define EXC_PPC_NOEMULATION8/* no floating point emulation */
98#define EXC_PPC_ALTIVECASSIST9/* Altivec Denorm Assist */
99
100/*
101 *EXC_SOFTWARE
102 * Note: 0x10000-0x10003 in use for unix signal
103 */
104#define EXC_PPC_TRAP1/* Program trap */
105#define EXC_PPC_MIGRATE0x10100/* Time to bolt */
106
107
108/*
109 *EXC_BREAKPOINT
110 */
111
112#define EXC_PPC_BREAKPOINTEXC_PPC_TRAP /* breakpoint trap */
113
114/*
115 *machine dependent exception masks
116 */
117#defineEXC_MASK_MACHINE0
118
119#endif/* _MACH_PPC_EXCEPTION_H_ */
120

Archive Download this file

Revision: 881