4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 1999 by Sun Microsystems, Inc.
24 * All rights reserved.
27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28 /* All Rights Reserved */
39 * Fault numbers, analagous to signals. These correspond to
40 * hardware faults. Setting the appropriate flags in a process's
41 * set of traced faults via /proc causes the process to stop each
42 * time one of the designated faults occurs so that a debugger can
43 * take action. See proc(4) for details.
46 /* fault enumeration must begin with 1 */
47 #define FLTILL 1 /* Illegal instruction */
48 #define FLTPRIV 2 /* Privileged instruction */
49 #define FLTBPT 3 /* Breakpoint instruction */
50 #define FLTTRACE 4 /* Trace trap (single-step) */
51 #define FLTACCESS 5 /* Memory access (e.g., alignment) */
52 #define FLTBOUNDS 6 /* Memory bounds (invalid address) */
53 #define FLTIOVF 7 /* Integer overflow */
54 #define FLTIZDIV 8 /* Integer zero divide */
55 #define FLTFPE 9 /* Floating-point exception */
56 #define FLTSTACK 10 /* Irrecoverable stack fault */
57 #define FLTPAGE 11 /* Recoverable page fault (no associated sig) */
58 #define FLTWATCH 12 /* Watchpoint trap */
59 #define FLTCPCOVF 13 /* CPU performance counter overflow */
61 typedef struct { /* fault set type */
69 #endif /* _SYS_FAULT_H */