xref: /illumos-gate/usr/src/uts/i86pc/ml/offsets.in (revision 0bb073995ac5a95bd35f2dd790df1ea3d8c2d507)
1\
2\ Copyright 2008 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 (the "License").
9\ You may not use this file except in compliance with the License.
10\
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.
15\
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]
21\
22\ CDDL HEADER END
23\
24
25
26\
27\ offsets.in: input file to produce assym.h using the ctfstabs program
28\
29
30#ifndef	_GENASSYM
31#define	_GENASSYM
32#endif
33
34#define	SIZES	1
35
36#include <sys/types.h>
37#include <sys/bootsvcs.h>
38#include <sys/systm.h>
39#include <sys/sysinfo.h>
40#include <sys/user.h>
41#include <sys/thread.h>
42#include <sys/proc.h>
43#include <sys/cpuvar.h>
44#include <sys/tss.h>
45#include <sys/privregs.h>
46#include <sys/segments.h>
47#include <sys/devops.h>
48#include <sys/ddi_impldefs.h>
49#include <vm/as.h>
50#include <sys/avintr.h>
51#include <sys/pic.h>
52#include <sys/rm_platter.h>
53#include <sys/stream.h>
54#include <sys/strsubr.h>
55#include <sys/sunddi.h>
56#include <sys/modctl.h>
57#include <sys/traptrace.h>
58#include <sys/ontrap.h>
59#include <sys/lgrp.h>
60#include <sys/dtrace.h>
61#include <sys/brand.h>
62#include <sys/fastboot.h>
63#include <sys/cpr_wakecode.h>
64
65proc		PROCSIZE
66	p_link
67	p_next
68	p_child
69	p_sibling
70	p_sig
71	p_flag
72	p_tlist
73	p_as
74	p_lockp
75	p_user
76	p_ldt
77	p_ldt_desc
78	p_model
79	p_pctx
80	p_agenttp
81	p_zone
82	p_brand
83	p_brand_data
84
85_kthread	THREAD_SIZE
86	t_pcb			T_LABEL
87	t_lock
88	t_lockstat
89	t_lockp
90	t_lock_flush
91	t_kpri_req
92	t_oldspl
93	t_pri
94	t_pil
95	t_lwp
96	t_procp
97	t_link
98	t_state
99	t_mstate
100	t_preempt_lk
101	t_stk			T_STACK
102	t_swap
103	t_lwpchan.lc_wchan	T_WCHAN
104	t_flag			T_FLAGS
105	t_ctx
106	t_lofault
107	t_onfault
108	t_ontrap
109	t_cpu
110	t_lpl
111	t_bound_cpu
112	t_intr
113	t_forw
114	t_back
115	t_sig
116	t_tid
117	t_pre_sys
118	t_preempt
119	t_proc_flag
120	t_startpc
121	t_sysnum
122	t_intr_start
123	_tu._ts._t_astflag	T_ASTFLAG
124	_tu._ts._t_post_sys	T_POST_SYS
125	_tu._t_post_sys_ast	T_POST_SYS_AST
126	t_copyops
127
128ctxop
129	save_op			CTXOP_SAVE
130
131as
132	a_hat
133
134user	USIZEBYTES
135	u_comm
136	u_signal
137
138_label_t
139	val	LABEL_VAL
140
141\#define	LABEL_PC	LABEL_VAL
142\#define	LABEL_SP	_CONST(LABEL_VAL + LABEL_VAL_INCR)
143\#define	T_PC		_CONST(T_LABEL + LABEL_PC)
144\#define	T_SP		_CONST(T_LABEL + LABEL_SP)
145
146_klwp
147	lwp_thread
148	lwp_procp
149	lwp_brand
150	lwp_eosys
151	lwp_regs
152	lwp_arg
153	lwp_ap
154	lwp_cursig
155	lwp_state
156	lwp_mstate.ms_acct	LWP_MS_ACCT
157	lwp_mstate.ms_prev	LWP_MS_PREV
158	lwp_mstate.ms_start	LWP_MS_START
159	lwp_mstate.ms_state_start LWP_MS_STATE_START
160	lwp_pcb
161	lwp_ru.sysc		LWP_RU_SYSC
162
163\#define	LWP_ACCT_USER	_CONST(LWP_MS_ACCT + _MUL(LMS_USER, LWP_MS_ACCT_INCR))
164\#define	LWP_ACCT_SYSTEM	_CONST(LWP_MS_ACCT + _MUL(LMS_SYSTEM, LWP_MS_ACCT_INCR))
165
166fpu_ctx
167	fpu_regs		FPU_CTX_FPU_REGS
168	fpu_flags		FPU_CTX_FPU_FLAGS
169
170fxsave_state	FXSAVE_STATE_SIZE
171	fx_fsw			FXSAVE_STATE_FSW
172	fx_mxcsr_mask		FXSAVE_STATE_MXCSR_MASK
173
174
175autovec		AUTOVECSIZE
176	av_vector
177	av_intarg1
178	av_intarg2
179	av_ticksp
180	av_link
181	av_prilevel
182	av_dip
183
184av_head
185	avh_link
186	avh_hi_pri
187	avh_lo_pri
188
189cpu
190	cpu_id
191	cpu_flags
192	cpu_self
193	cpu_thread
194	cpu_thread_lock
195	cpu_kprunrun
196	cpu_lwp
197	cpu_fpowner
198	cpu_idle_thread
199	cpu_intr_thread
200	cpu_intr_actv
201	cpu_base_spl
202	cpu_intr_stack
203	cpu_stats.sys.cpumigrate	CPU_STATS_SYS_CPUMIGRATE
204	cpu_stats.sys.intr		CPU_STATS_SYS_INTR
205	cpu_stats.sys.intrblk		CPU_STATS_SYS_INTRBLK
206	cpu_stats.sys.syscall		CPU_STATS_SYS_SYSCALL
207	cpu_profile_pc
208	cpu_profile_upc
209	cpu_profile_pil
210	cpu_ftrace.ftd_state		CPU_FTRACE_STATE
211	cpu_mstate
212	cpu_intracct
213
214\#define	CPU_INTR_ACTV_REF	_CONST(CPU_INTR_ACTV + 2)
215
216cpu
217	cpu_m.pil_high_start	CPU_PIL_HIGH_START
218	cpu_m.intrstat		CPU_INTRSTAT
219	cpu_m.mcpu_current_hat	CPU_CURRENT_HAT
220	cpu_m.mcpu_gdt		CPU_GDT
221	cpu_m.mcpu_idt		CPU_IDT
222	cpu_m.mcpu_tss		CPU_TSS
223	cpu_m.mcpu_softinfo	CPU_SOFTINFO
224	cpu_m.mcpu_pri		CPU_PRI
225	cpu_m.mcpu_pri_data	CPU_PRI_DATA
226#if defined(__xpv)
227	cpu_m.mcpu_vcpu_info	CPU_VCPU_INFO
228#endif
229
230machcpu
231	mcpu_pri_data	MCPU_PRI_DATA
232
233standard_pic
234	c_curmask
235	c_iplmask
236
237ddi_dma_impl
238	dmai_rflags
239	dmai_rdip
240
241dev_info
242	devi_ops		DEVI_DEV_OPS
243	devi_bus_ctl
244	devi_bus_dma_map
245	devi_bus_dma_ctl
246	devi_bus_dma_allochdl
247	devi_bus_dma_freehdl
248	devi_bus_dma_bindhdl
249	devi_bus_dma_unbindhdl
250	devi_bus_dma_flush
251	devi_bus_dma_win
252
253dev_ops
254	devo_bus_ops		DEVI_BUS_OPS
255
256bus_ops
257	bus_ctl			OPS_CTL
258	bus_dma_map		OPS_MAP
259	bus_dma_ctl		OPS_MCTL
260	bus_dma_allochdl	OPS_ALLOCHDL
261	bus_dma_freehdl		OPS_FREEHDL
262	bus_dma_bindhdl		OPS_BINDHDL
263	bus_dma_unbindhdl	OPS_UNBINDHDL
264	bus_dma_flush		OPS_FLUSH
265	bus_dma_win		OPS_WIN
266
267sysent	SYSENT_SIZE	SYSENT_SIZE_SHIFT
268	sy_callc
269	sy_flags
270	sy_narg
271
272stdata
273	sd_lock
274
275queue
276	q_flag
277	q_next
278	q_stream
279	q_syncq
280	q_qinfo
281
282qinit
283	qi_putp
284
285syncq
286	sq_flags
287	sq_count
288	sq_lock
289	sq_wait
290
291rm_platter
292	rm_idt_lim		IDTROFF
293	rm_gdt_lim		GDTROFF
294	rm_pdbr			CR3OFF
295	rm_cpu			CPUNOFF
296	rm_cr4			CR4OFF
297	rm_x86feature		X86FEATURE
298
299ddi_acc_impl
300	ahi_acc_attr	ACC_ATTR
301	ahi_get8	ACC_GETB
302	ahi_get16	ACC_GETW
303	ahi_get32	ACC_GETL
304	ahi_get64	ACC_GETLL
305	ahi_put8	ACC_PUTB
306	ahi_put16	ACC_PUTW
307	ahi_put32	ACC_PUTL
308	ahi_put64	ACC_PUTLL
309	ahi_rep_get8	ACC_REP_GETB
310	ahi_rep_get16	ACC_REP_GETW
311	ahi_rep_get32	ACC_REP_GETL
312	ahi_rep_get64	ACC_REP_GETLL
313	ahi_rep_put8	ACC_REP_PUTB
314	ahi_rep_put16	ACC_REP_PUTW
315	ahi_rep_put32	ACC_REP_PUTL
316	ahi_rep_put64	ACC_REP_PUTLL
317
318on_trap_data
319	ot_prot
320	ot_trap
321	ot_trampoline
322	ot_jmpbuf
323	ot_prev
324	ot_handle
325	ot_pad1
326
327trap_trace_ctl_t	__TRAPTR_SIZE TRAPTR_SIZE_SHIFT
328	ttc_next	TRAPTR_NEXT
329	ttc_first	TRAPTR_FIRST
330	ttc_limit	TRAPTR_LIMIT
331
332trap_trace_rec_t	TRAP_ENT_SIZE
333	ttr_cr2
334	ttr_info.idt_entry.vector	TTR_VECTOR
335	ttr_info.idt_entry.ipl		TTR_IPL
336	ttr_info.idt_entry.spl		TTR_SPL
337	ttr_info.idt_entry.pri		TTR_PRI
338	ttr_info.gate_entry.sysnum	TTR_SYSNUM
339	ttr_marker
340	ttr_stamp
341	ttr_curthread
342	ttr_sdepth
343	ttr_stack
344
345lgrp_ld
346	lpl_lgrpid
347
348dtrace_id_t	DTRACE_IDSIZE
349
350cpu_core	CPU_CORE_SIZE	CPU_CORE_SHIFT
351	cpuc_dtrace_flags
352	cpuc_dtrace_illval
353
354timespec	TIMESPEC_SIZE
355
356gate_desc	GATE_DESC_SIZE
357
358desctbr_t	DESCTBR_SIZE
359	dtr_limit
360	dtr_base
361
362mod_stub_info	MODS_SIZE
363	mods_func_adr	MODS_INSTFCN
364	mods_errfcn	MODS_RETFCN
365	mods_flag
366
367\#define	TRAP_TSIZE		_MUL(TRAP_ENT_SIZE, TRAPTR_NENT)
368
369copyops
370	cp_copyin
371	cp_xcopyin
372	cp_copyout
373	cp_xcopyout
374	cp_copyinstr
375	cp_copyoutstr
376	cp_fuword8
377	cp_fuword16
378	cp_fuword32
379	cp_fuword64
380	cp_suword8
381	cp_suword16
382	cp_suword32
383	cp_suword64
384	cp_physio
385
386brand
387	b_machops
388
389fastboot_file_t
390	fb_va
391	fb_pte_list_va
392	fb_pte_list_pa
393	fb_dest_pa
394	fb_size
395	fb_next_pa
396	fb_sections
397	fb_sectcnt
398
399fastboot_section_t
400	fb_sec_offset
401	fb_sec_paddr
402	fb_sec_size
403	fb_sec_bss_size
404
405fastboot_info_t
406	fi_files
407	fi_has_pae
408	fi_pagetable_va
409	fi_pagetable_pa
410	fi_last_table_pa
411	fi_new_mbi_pa
412	fi_valid
413
414zone
415	zone_brand_data
416
417wc_cpu	WC_CPU_SIZE
418	wc_retaddr
419	wc_virtaddr
420	wc_cr0
421	wc_cr3
422	wc_cr4
423	wc_cr8
424	wc_fs
425	wc_fsbase
426	wc_gs
427	wc_gsbase
428	wc_kgsbase
429	wc_r8
430	wc_r9
431	wc_r10
432	wc_r11
433	wc_r12
434	wc_r13
435	wc_r14
436	wc_r15
437	wc_rax
438	wc_rbp
439	wc_rbx
440	wc_rcx
441	wc_rdi
442	wc_rdx
443	wc_rsi
444	wc_rsp
445	wc_gdt_limit	WC_GDT
446	wc_gdt_base
447	wc_idt_limit	WC_IDT
448	wc_idt_base
449	wc_tr
450	wc_ldt
451	wc_eflags
452	wc_ebx
453	wc_edi
454	wc_esi
455	wc_ebp
456	wc_esp
457	wc_esp
458	wc_ss
459	wc_cs
460	wc_ds
461	wc_es
462
463wc_wakecode
464	wc_cpu
465