xref: /titanic_52/usr/src/uts/i86pc/ml/offsets.in (revision 930176a00b697a09f5256ff3d4b1550f8e73c3a6)
1\
2\ Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
3\ Use is subject to license terms.
4\
5\ CDDL HEADER START
6\
7\ The contents of this file are subject to the terms of the
8\ Common Development and Distribution License, Version 1.0 only
9\ (the "License").  You may not use this file except in compliance
10\ with the License.
11\
12\ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13\ or http://www.opensolaris.org/os/licensing.
14\ See the License for the specific language governing permissions
15\ and limitations under the License.
16\
17\ When distributing Covered Code, include this CDDL HEADER in each
18\ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19\ If applicable, add the following below this CDDL HEADER, with the
20\ fields enclosed by brackets "[]" replaced with your own identifying
21\ information: Portions Copyright [yyyy] [name of copyright owner]
22\
23\ CDDL HEADER END
24\
25
26#pragma ident	"%Z%%M%	%I%	%E% SMI"
27
28\
29\ offsets.in: input file to produce assym.h using the ctfstabs program
30\
31
32#ifndef	_GENASSYM
33#define	_GENASSYM
34#endif
35
36#define	SIZES	1
37
38#include <sys/types.h>
39#include <sys/bootsvcs.h>
40#include <sys/systm.h>
41#include <sys/sysinfo.h>
42#include <sys/user.h>
43#include <sys/thread.h>
44#include <sys/proc.h>
45#include <sys/cpuvar.h>
46#include <sys/tss.h>
47#include <sys/privregs.h>
48#include <sys/segments.h>
49#include <sys/devops.h>
50#include <sys/ddi_impldefs.h>
51#include <vm/as.h>
52#include <sys/avintr.h>
53#include <sys/pic.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/modctl.h>
59#include <sys/traptrace.h>
60#include <sys/ontrap.h>
61#include <sys/lgrp.h>
62#include <sys/dtrace.h>
63
64proc		PROCSIZE
65	p_link
66	p_next
67	p_child
68	p_sibling
69	p_sig
70	p_flag
71	p_tlist
72	p_as
73	p_lockp
74	p_user
75	p_ldt
76	p_ldt_desc
77	p_model
78	p_pctx
79	p_agenttp
80
81_kthread	THREAD_SIZE
82	t_pcb			T_LABEL
83	t_lock
84	t_lockstat
85	t_lockp
86	t_lock_flush
87	t_kpri_req
88	t_oldspl
89	t_pri
90	t_pil
91	t_lwp
92	t_procp
93	t_link
94	t_state
95	t_mstate
96	t_preempt_lk
97	t_stk			T_STACK
98	t_swap
99	t_lwpchan.lc_wchan	T_WCHAN
100	t_flag			T_FLAGS
101	t_ctx
102	t_lofault
103	t_onfault
104	t_ontrap
105	t_cpu
106	t_lpl
107	t_bound_cpu
108	t_intr
109	t_forw
110	t_back
111	t_sig
112	t_tid
113	t_pre_sys
114	t_preempt
115	t_proc_flag
116	t_startpc
117	t_sysnum
118	t_intr_start
119	_tu._ts._t_astflag	T_ASTFLAG
120	_tu._ts._t_post_sys	T_POST_SYS
121	_tu._t_post_sys_ast	T_POST_SYS_AST
122	t_copyops
123
124ctxop
125	save_op			CTXOP_SAVE
126
127as
128	a_hat
129
130user	USIZEBYTES
131	u_comm
132	u_signal
133
134_label_t
135	val	LABEL_VAL
136
137\#define	LABEL_PC	LABEL_VAL
138\#define	LABEL_SP	_CONST(LABEL_VAL + LABEL_VAL_INCR)
139\#define	T_PC		_CONST(T_LABEL + LABEL_PC)
140\#define	T_SP		_CONST(T_LABEL + LABEL_SP)
141
142_klwp
143	lwp_thread
144	lwp_procp
145	lwp_eosys
146	lwp_regs
147	lwp_arg
148	lwp_ap
149	lwp_cursig
150	lwp_state
151	lwp_mstate.ms_acct	LWP_MS_ACCT
152	lwp_mstate.ms_prev	LWP_MS_PREV
153	lwp_mstate.ms_start	LWP_MS_START
154	lwp_mstate.ms_state_start LWP_MS_STATE_START
155	lwp_pcb
156	lwp_ru.sysc		LWP_RU_SYSC
157
158\#define	LWP_ACCT_USER	_CONST(LWP_MS_ACCT + _MUL(LMS_USER, LWP_MS_ACCT_INCR))
159\#define	LWP_ACCT_SYSTEM	_CONST(LWP_MS_ACCT + _MUL(LMS_SYSTEM, LWP_MS_ACCT_INCR))
160
161fpu_ctx
162	fpu_regs		FPU_CTX_FPU_REGS
163	fpu_flags		FPU_CTX_FPU_FLAGS
164
165fxsave_state	FXSAVE_STATE_SIZE
166	fx_mxcsr_mask		FXSAVE_STATE_MXCSR_MASK
167
168
169autovec		AUTOVECSIZE
170	av_vector
171	av_intarg1
172	av_intarg2
173	av_ticksp
174	av_link
175	av_prilevel
176	av_dip
177
178av_head
179	avh_link
180	avh_hi_pri
181	avh_lo_pri
182
183cpu
184	cpu_id
185	cpu_flags
186	cpu_self
187	cpu_thread
188	cpu_thread_lock
189	cpu_kprunrun
190	cpu_lwp
191	cpu_fpowner
192	cpu_idle_thread
193	cpu_intr_thread
194	cpu_intr_actv
195	cpu_base_spl
196	cpu_intr_stack
197	cpu_stats.sys.cpumigrate	CPU_STATS_SYS_CPUMIGRATE
198	cpu_stats.sys.intr		CPU_STATS_SYS_INTR
199	cpu_stats.sys.intrblk		CPU_STATS_SYS_INTRBLK
200	cpu_stats.sys.syscall		CPU_STATS_SYS_SYSCALL
201	cpu_profile_pc
202	cpu_profile_upc
203	cpu_profile_pil
204	cpu_ftrace.ftd_state		CPU_FTRACE_STATE
205	cpu_mstate
206	cpu_intracct
207
208\#define	CPU_INTR_ACTV_REF	_CONST(CPU_INTR_ACTV + 2)
209
210cpu
211	cpu_m.pil_high_start	CPU_PIL_HIGH_START
212	cpu_m.intrstat		CPU_INTRSTAT
213	cpu_m.mcpu_current_hat	CPU_CURRENT_HAT
214	cpu_m.mcpu_gdt		CPU_GDT
215	cpu_m.mcpu_idt		CPU_IDT
216	cpu_m.mcpu_tss		CPU_TSS
217	cpu_m.mcpu_softinfo	CPU_SOFTINFO
218	cpu_m.mcpu_pri		CPU_PRI
219	cpu_m.mcpu_pri_data	CPU_PRI_DATA
220
221machcpu
222	mcpu_pri_data	MCPU_PRI_DATA
223
224standard_pic
225	c_curmask
226	c_iplmask
227
228ddi_dma_impl
229	dmai_rflags
230	dmai_rdip
231
232dev_info
233	devi_ops		DEVI_DEV_OPS
234	devi_bus_ctl
235	devi_bus_dma_map
236	devi_bus_dma_ctl
237	devi_bus_dma_allochdl
238	devi_bus_dma_freehdl
239	devi_bus_dma_bindhdl
240	devi_bus_dma_unbindhdl
241	devi_bus_dma_flush
242	devi_bus_dma_win
243
244dev_ops
245	devo_bus_ops		DEVI_BUS_OPS
246
247bus_ops
248	bus_ctl			OPS_CTL
249	bus_dma_map		OPS_MAP
250	bus_dma_ctl		OPS_MCTL
251	bus_dma_allochdl	OPS_ALLOCHDL
252	bus_dma_freehdl		OPS_FREEHDL
253	bus_dma_bindhdl		OPS_BINDHDL
254	bus_dma_unbindhdl	OPS_UNBINDHDL
255	bus_dma_flush		OPS_FLUSH
256	bus_dma_win		OPS_WIN
257
258sysent	SYSENT_SIZE	SYSENT_SIZE_SHIFT
259	sy_callc
260	sy_flags
261	sy_narg
262
263stdata
264	sd_lock
265
266queue
267	q_flag
268	q_next
269	q_stream
270	q_syncq
271	q_qinfo
272
273qinit
274	qi_putp
275
276syncq
277	sq_flags
278	sq_count
279	sq_lock
280	sq_wait
281
282rm_platter
283	rm_idt_lim		IDTROFF
284	rm_gdt_lim		GDTROFF
285	rm_pdbr			CR3OFF
286	rm_cpu			CPUNOFF
287	rm_cr4			CR4OFF
288	rm_x86feature		X86FEATURE
289
290cpu_tables
291	ct_stack
292	ct_gdt
293
294\#define	DEFAULTSTKSZ	_CONST(CT_GDT - CT_STACK)
295
296ddi_acc_impl
297	ahi_acc_attr	ACC_ATTR
298	ahi_get8	ACC_GETB
299	ahi_get16	ACC_GETW
300	ahi_get32	ACC_GETL
301	ahi_get64	ACC_GETLL
302	ahi_put8	ACC_PUTB
303	ahi_put16	ACC_PUTW
304	ahi_put32	ACC_PUTL
305	ahi_put64	ACC_PUTLL
306	ahi_rep_get8	ACC_REP_GETB
307	ahi_rep_get16	ACC_REP_GETW
308	ahi_rep_get32	ACC_REP_GETL
309	ahi_rep_get64	ACC_REP_GETLL
310	ahi_rep_put8	ACC_REP_PUTB
311	ahi_rep_put16	ACC_REP_PUTW
312	ahi_rep_put32	ACC_REP_PUTL
313	ahi_rep_put64	ACC_REP_PUTLL
314
315on_trap_data
316	ot_prot
317	ot_trap
318	ot_trampoline
319	ot_jmpbuf
320	ot_prev
321	ot_handle
322	ot_pad1
323
324trap_trace_ctl_t	__TRAPTR_SIZE TRAPTR_SIZE_SHIFT
325	ttc_next	TRAPTR_NEXT
326	ttc_first	TRAPTR_FIRST
327	ttc_limit	TRAPTR_LIMIT
328
329trap_trace_rec_t	TRAP_ENT_SIZE
330	ttr_cr2
331	ttr_info.idt_entry.vector	TTR_VECTOR
332	ttr_info.idt_entry.ipl		TTR_IPL
333	ttr_info.idt_entry.spl		TTR_SPL
334	ttr_info.idt_entry.pri		TTR_PRI
335	ttr_info.gate_entry.sysnum	TTR_SYSNUM
336	ttr_marker
337	ttr_stamp
338	ttr_curthread
339	ttr_sdepth
340	ttr_stack
341
342lgrp_ld
343	lpl_lgrpid
344
345dtrace_id_t	DTRACE_IDSIZE
346
347cpu_core	CPU_CORE_SIZE	CPU_CORE_SHIFT
348	cpuc_dtrace_flags
349	cpuc_dtrace_illval
350
351timespec	TIMESPEC_SIZE
352
353gate_desc	GATE_DESC_SIZE
354
355desctbr_t	DESCTBR_SIZE
356	dtr_limit
357	dtr_base
358
359mod_stub_info	MODS_SIZE
360	mods_func_adr	MODS_INSTFCN
361	mods_errfcn	MODS_RETFCN
362	mods_flag
363
364\#define	TRAP_TSIZE		_MUL(TRAP_ENT_SIZE, TRAPTR_NENT)
365
366copyops
367	cp_copyin
368	cp_xcopyin
369	cp_copyout
370	cp_xcopyout
371	cp_copyinstr
372	cp_copyoutstr
373	cp_fuword8
374	cp_fuword16
375	cp_fuword32
376	cp_fuword64
377	cp_suword8
378	cp_suword16
379	cp_suword32
380	cp_suword64
381	cp_physio
382