2 \ Copyright 2007 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
39 \ XXPV This seems to be needed to avoid a namespace collisions with
40 \ some other header file in the list below.
44 #include <sys/types.h>
45 #include <sys/bootsvcs.h>
46 #include <sys/systm.h>
47 #include <sys/sysinfo.h>
49 #include <sys/thread.h>
51 #include <sys/cpuvar.h>
53 #include <sys/privregs.h>
54 #include <sys/segments.h>
55 #include <sys/devops.h>
56 #include <sys/ddi_impldefs.h>
58 #include <sys/avintr.h>
60 #include <sys/rm_platter.h>
61 #include <sys/stream.h>
62 #include <sys/strsubr.h>
63 #include <sys/sunddi.h>
64 #include <sys/traptrace.h>
65 #include <sys/ontrap.h>
67 #include <sys/dtrace.h>
88 __r_fsbase REGOFF_FSBASE
89 __r_gsbase REGOFF_GSBASE
95 r_trapno REGOFF_TRAPNO
103 \#define REGOFF_PC REGOFF_RIP
106 bsvc_putchar BOOTSVCS_PUTCHAR
120 \#define LABEL_RBP _CONST(_MUL(2, LABEL_VAL_INCR) + LABEL_VAL)
121 \#define LABEL_RBX _CONST(_MUL(3, LABEL_VAL_INCR) + LABEL_VAL)
122 \#define LABEL_R12 _CONST(_MUL(4, LABEL_VAL_INCR) + LABEL_VAL)
123 \#define LABEL_R13 _CONST(_MUL(5, LABEL_VAL_INCR) + LABEL_VAL)
124 \#define LABEL_R14 _CONST(_MUL(6, LABEL_VAL_INCR) + LABEL_VAL)
125 \#define LABEL_R15 _CONST(_MUL(7, LABEL_VAL_INCR) + LABEL_VAL)
126 \#define T_RBP _CONST(T_LABEL + LABEL_RBP)
127 \#define T_RBX _CONST(T_LABEL + LABEL_RBX)
128 \#define T_R12 _CONST(T_LABEL + LABEL_R12)
129 \#define T_R13 _CONST(T_LABEL + LABEL_R13)
130 \#define T_R14 _CONST(T_LABEL + LABEL_R14)
131 \#define T_R15 _CONST(T_LABEL + LABEL_R15)
134 lwp_pcb.pcb_fpu LWP_PCB_FPU
135 lwp_pcb.pcb_fsbase LWP_PCB_FSBASE
136 lwp_pcb.pcb_gsbase LWP_PCB_GSBASE
137 lwp_pcb.pcb_ds LWP_PCB_DS
138 lwp_pcb.pcb_es LWP_PCB_ES
139 lwp_pcb.pcb_fs LWP_PCB_FS
140 lwp_pcb.pcb_gs LWP_PCB_GS
141 lwp_pcb.pcb_drstat LWP_PCB_DRSTAT
142 lwp_pcb.pcb_flags PCB_FLAGS
143 lwp_pcb.pcb_fpu.fpu_regs LWP_FPU_REGS
144 lwp_pcb.pcb_fpu.fpu_flags LWP_FPU_FLAGS
145 lwp_pcb.pcb_rupdate PCB_RUPDATE
155 pcb_fpu.fpu_regs PCB_FPU_REGS
156 pcb_fpu.fpu_flags PCB_FPU_FLAGS
159 cpu_m.mcpu_rtmp_rsp CPU_RTMP_RSP
160 cpu_m.mcpu_rtmp_r15 CPU_RTMP_R15
163 rm_temp_gdt_lim TEMPGDTOFF
164 rm_temp_idt_lim TEMPIDTOFF
165 rm_longmode64_addr LM64OFF