2 \ Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 \ Use is subject to license terms.
7 \ The contents of this file are subject to the terms of the
8 \ Common Development and Distribution License (the "License").
9 \ You may not use this file except in compliance with the License.
11 \ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12 \ or http://www.opensolaris.org/os/licensing.
13 \ See the License for the specific language governing permissions
14 \ and limitations under the License.
16 \ When distributing Covered Code, include this CDDL HEADER in each
17 \ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18 \ If applicable, add the following below this CDDL HEADER, with the
19 \ fields enclosed by brackets "[]" replaced with your own identifying
20 \ information: Portions Copyright [yyyy] [name of copyright owner]
24 \ Copyright 2011 Joyent, Inc. All rights reserved.
28 \ offsets.in: input file to produce assym.h using the ctfstabs program
38 #include <sys/types.h>
39 #include <sys/bootsvcs.h>
40 #include <sys/systm.h>
41 #include <sys/sysinfo.h>
43 #include <sys/thread.h>
45 #include <sys/cpuvar.h>
47 #include <sys/privregs.h>
48 #include <sys/segments.h>
49 #include <sys/devops.h>
50 #include <sys/ddi_impldefs.h>
52 #include <sys/avintr.h>
54 #include <sys/rm_platter.h>
55 #include <sys/stream.h>
56 #include <sys/strsubr.h>
57 #include <sys/sunddi.h>
58 #include <sys/traptrace.h>
59 #include <sys/ontrap.h>
61 #include <sys/dtrace.h>
78 r_trapno REGOFF_TRAPNO
86 \#define REGOFF_PC REGOFF_EIP
110 \#define LABEL_EBP _CONST(_MUL(2, LABEL_VAL_INCR) + LABEL_VAL)
111 \#define LABEL_EBX _CONST(_MUL(3, LABEL_VAL_INCR) + LABEL_VAL)
112 \#define LABEL_ESI _CONST(_MUL(4, LABEL_VAL_INCR) + LABEL_VAL)
113 \#define LABEL_EDI _CONST(_MUL(5, LABEL_VAL_INCR) + LABEL_VAL)
114 \#define T_EBP _CONST(T_LABEL + LABEL_EBP)
115 \#define T_EBX _CONST(T_LABEL + LABEL_EBX)
116 \#define T_ESI _CONST(T_LABEL + LABEL_ESI)
117 \#define T_EDI _CONST(T_LABEL + LABEL_EDI)
120 lwp_pcb.pcb_fsdesc LWP_PCB_FSDESC
121 lwp_pcb.pcb_gsdesc LWP_PCB_GSDESC
122 lwp_pcb.pcb_drstat LWP_PCB_DRSTAT
123 lwp_pcb.pcb_flags PCB_FLAGS
124 lwp_pcb.pcb_fpu LWP_PCB_FPU
125 lwp_pcb.pcb_fpu.fpu_regs LWP_FPU_REGS
126 lwp_pcb.pcb_fpu.fpu_flags LWP_FPU_FLAGS
127 lwp_pcb.pcb_fpu.fpu_regs.kfpu_u.kfpu_fx LWP_FPU_CHIP_STATE
133 pcb_fpu.fpu_regs PCB_FPU_REGS
134 pcb_fpu.fpu_flags PCB_FPU_FLAGS