1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22 /* 23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _COMPAT_OPENSOLARIS_SYS_CPUVAR_DEFS_H 28 #define _COMPAT_OPENSOLARIS_SYS_CPUVAR_DEFS_H 29 30 /* 31 * DTrace flags. 32 */ 33 #define CPU_DTRACE_NOFAULT 0x0001 /* Don't fault */ 34 #define CPU_DTRACE_DROP 0x0002 /* Drop this ECB */ 35 #define CPU_DTRACE_BADADDR 0x0004 /* DTrace fault: bad address */ 36 #define CPU_DTRACE_BADALIGN 0x0008 /* DTrace fault: bad alignment */ 37 #define CPU_DTRACE_DIVZERO 0x0010 /* DTrace fault: divide by zero */ 38 #define CPU_DTRACE_ILLOP 0x0020 /* DTrace fault: illegal operation */ 39 #define CPU_DTRACE_NOSCRATCH 0x0040 /* DTrace fault: out of scratch */ 40 #define CPU_DTRACE_KPRIV 0x0080 /* DTrace fault: bad kernel access */ 41 #define CPU_DTRACE_UPRIV 0x0100 /* DTrace fault: bad user access */ 42 #define CPU_DTRACE_TUPOFLOW 0x0200 /* DTrace fault: tuple stack overflow */ 43 #if defined(__sparc) 44 #define CPU_DTRACE_FAKERESTORE 0x0400 /* pid provider hint to getreg */ 45 #endif 46 #define CPU_DTRACE_ENTRY 0x0800 /* pid provider hint to ustack() */ 47 #define CPU_DTRACE_BADSTACK 0x1000 /* DTrace fault: bad stack */ 48 49 #define CPU_DTRACE_FAULT (CPU_DTRACE_BADADDR | CPU_DTRACE_BADALIGN | \ 50 CPU_DTRACE_DIVZERO | CPU_DTRACE_ILLOP | \ 51 CPU_DTRACE_NOSCRATCH | CPU_DTRACE_KPRIV | \ 52 CPU_DTRACE_UPRIV | CPU_DTRACE_TUPOFLOW | \ 53 CPU_DTRACE_BADSTACK) 54 #define CPU_DTRACE_ERROR (CPU_DTRACE_FAULT | CPU_DTRACE_DROP) 55 56 #define PANICSTKSIZE 8192 57 #define REGSIZE 256 58 59 #endif /* _COMPAT_OPENSOLARIS_SYS_CPUVAR_DEFS_H */ 60