]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/ppc/exception.h
b8bb419a7d816e2218c4a12c42fd6f23f98c3623
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
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
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
34 * Copyright (c) 1990, 1991, 1992, The University of Utah and
35 * the Center for Software Science at the University of Utah (CSS).
36 * All rights reserved.
38 * Permission to use, copy, modify and distribute this software is hereby
39 * granted provided that (1) source code retains these copyright, permission,
40 * and disclaimer notices, and (2) redistributions including binaries
41 * reproduce the notices in supporting documentation, and (3) all advertising
42 * materials mentioning features or use of this software display the following
43 * acknowledgement: ``This product includes software developed by the Center
44 * for Software Science at the University of Utah.''
46 * THE UNIVERSITY OF UTAH AND CSS ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
47 * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSS DISCLAIM ANY LIABILITY OF
48 * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
50 * CSS requests users of this software to return to css-dist@cs.utah.edu any
51 * improvements that they make and grant CSS redistribution rights.
56 #ifndef _MACH_PPC_EXCEPTION_H_
57 #define _MACH_PPC_EXCEPTION_H_
59 #define EXC_TYPES_COUNT 10 /* incl. illegal exception 0 */
61 #define EXCEPTION_CODE_MAX 2 /* elements in vector (code+subcode) */
66 #define EXC_PPC_INVALID_SYSCALL 1 /* invalid syscall number */
67 #define EXC_PPC_UNIPL_INST 2 /* unimplemented instruction */
68 #define EXC_PPC_PRIVINST 3 /* priviledged instruction */
69 #define EXC_PPC_PRIVREG 4 /* priviledged register */
70 #define EXC_PPC_TRACE 5 /* trace/single-step */
71 #define EXC_PPC_PERFMON 6 /* performance monitor */
75 * Note: do not conflict with kern_return_t values returned by vm_fault
78 #define EXC_PPC_VM_PROT_READ 0x101 /* error reading syscall args */
79 #define EXC_PPC_BADSPACE 0x102 /* bad space referenced */
80 #define EXC_PPC_UNALIGNED 0x103 /* unaligned data reference */
86 #define EXC_PPC_OVERFLOW 1 /* integer overflow */
87 #define EXC_PPC_ZERO_DIVIDE 2 /* integer divide by zero */
88 #define EXC_PPC_FLT_INEXACT 3 /* IEEE inexact exception */
89 #define EXC_PPC_FLT_ZERO_DIVIDE 4 /* IEEE zero divide */
90 #define EXC_PPC_FLT_UNDERFLOW 5 /* IEEE floating underflow */
91 #define EXC_PPC_FLT_OVERFLOW 6 /* IEEE floating overflow */
92 #define EXC_PPC_FLT_NOT_A_NUMBER 7 /* IEEE not a number */
95 * EXC_PPC_NOEMULATION should go away when we add software emulation
96 * for floating point. Right now we don't support this.
99 #define EXC_PPC_NOEMULATION 8 /* no floating point emulation */
100 #define EXC_PPC_ALTIVECASSIST 9 /* Altivec Denorm Assist */
104 * Note: 0x10000-0x10003 in use for unix signal
106 #define EXC_PPC_TRAP 1 /* Program trap */
107 #define EXC_PPC_MIGRATE 0x10100 /* Time to bolt */
114 #define EXC_PPC_BREAKPOINT EXC_PPC_TRAP /* breakpoint trap */
117 * machine dependent exception masks
119 #define EXC_MASK_MACHINE 0
121 #endif /* _MACH_PPC_EXCEPTION_H_ */