xref: /titanic_50/usr/src/uts/i86pc/ml/offsets.in (revision 461686c359e383739b8e0d23c68520a0e2e2c361)
1\
2\ Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
3\
4\ CDDL HEADER START
5\
6\ The contents of this file are subject to the terms of the
7\ Common Development and Distribution License (the "License").
8\ You may not use this file except in compliance with the License.
9\
10\ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11\ or http://www.opensolaris.org/os/licensing.
12\ See the License for the specific language governing permissions
13\ and limitations under the License.
14\
15\ When distributing Covered Code, include this CDDL HEADER in each
16\ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17\ If applicable, add the following below this CDDL HEADER, with the
18\ fields enclosed by brackets "[]" replaced with your own identifying
19\ information: Portions Copyright [yyyy] [name of copyright owner]
20\
21\ CDDL HEADER END
22\
23
24
25\
26\ offsets.in: input file to produce assym.h using the ctfstabs program
27\
28
29#ifndef	_GENASSYM
30#define	_GENASSYM
31#endif
32
33#define	SIZES	1
34
35#include <sys/types.h>
36#include <sys/bootsvcs.h>
37#include <sys/systm.h>
38#include <sys/sysinfo.h>
39#include <sys/user.h>
40#include <sys/thread.h>
41#include <sys/proc.h>
42#include <sys/cpuvar.h>
43#include <sys/tss.h>
44#include <sys/privregs.h>
45#include <sys/segments.h>
46#include <sys/devops.h>
47#include <sys/ddi_impldefs.h>
48#include <vm/as.h>
49#include <sys/avintr.h>
50#include <sys/pic.h>
51#include <sys/rm_platter.h>
52#include <sys/stream.h>
53#include <sys/strsubr.h>
54#include <sys/sunddi.h>
55#include <sys/modctl.h>
56#include <sys/traptrace.h>
57#include <sys/ontrap.h>
58#include <sys/lgrp.h>
59#include <sys/dtrace.h>
60#include <sys/brand.h>
61#include <sys/fastboot.h>
62#include <sys/cpr_wakecode.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	p_zone
81	p_brand
82	p_brand_data
83
84_kthread	THREAD_SIZE
85	t_pcb			T_LABEL
86	t_lock
87	t_lockstat
88	t_lockp
89	t_lock_flush
90	t_kpri_req
91	t_oldspl
92	t_pri
93	t_pil
94	t_lwp
95	t_procp
96	t_link
97	t_state
98	t_mstate
99	t_preempt_lk
100	t_stk			T_STACK
101	t_swap
102	t_lwpchan.lc_wchan	T_WCHAN
103	t_flag			T_FLAGS
104	t_ctx
105	t_lofault
106	t_onfault
107	t_ontrap
108	t_cpu
109	t_lpl
110	t_bound_cpu
111	t_intr
112	t_forw
113	t_back
114	t_sig
115	t_tid
116	t_pre_sys
117	t_preempt
118	t_proc_flag
119	t_startpc
120	t_sysnum
121	t_intr_start
122	_tu._ts._t_astflag	T_ASTFLAG
123	_tu._ts._t_post_sys	T_POST_SYS
124	_tu._t_post_sys_ast	T_POST_SYS_AST
125	t_copyops
126
127ctxop
128	save_op			CTXOP_SAVE
129
130as
131	a_hat
132
133user	USIZEBYTES
134	u_comm
135	u_signal
136
137_label_t
138	val	LABEL_VAL
139
140\#define	LABEL_PC	LABEL_VAL
141\#define	LABEL_SP	_CONST(LABEL_VAL + LABEL_VAL_INCR)
142\#define	T_PC		_CONST(T_LABEL + LABEL_PC)
143\#define	T_SP		_CONST(T_LABEL + LABEL_SP)
144
145_klwp
146	lwp_thread
147	lwp_procp
148	lwp_brand
149	lwp_eosys
150	lwp_regs
151	lwp_arg
152	lwp_ap
153	lwp_cursig
154	lwp_state
155	lwp_mstate.ms_acct	LWP_MS_ACCT
156	lwp_mstate.ms_prev	LWP_MS_PREV
157	lwp_mstate.ms_start	LWP_MS_START
158	lwp_mstate.ms_state_start LWP_MS_STATE_START
159	lwp_pcb
160	lwp_ru.sysc		LWP_RU_SYSC
161
162\#define	LWP_ACCT_USER	_CONST(LWP_MS_ACCT + _MUL(LMS_USER, LWP_MS_ACCT_INCR))
163\#define	LWP_ACCT_SYSTEM	_CONST(LWP_MS_ACCT + _MUL(LMS_SYSTEM, LWP_MS_ACCT_INCR))
164
165fpu_ctx
166	fpu_regs		FPU_CTX_FPU_REGS
167	fpu_flags		FPU_CTX_FPU_FLAGS
168	fpu_xsave_mask		FPU_CTX_FPU_XSAVE_MASK
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_cpu_halt_code	CPUHALTCODEOFF
298	rm_cpu_halted		CPUHALTEDOFF
299
300ddi_acc_impl
301	ahi_acc_attr	ACC_ATTR
302	ahi_get8	ACC_GETB
303	ahi_get16	ACC_GETW
304	ahi_get32	ACC_GETL
305	ahi_get64	ACC_GETLL
306	ahi_put8	ACC_PUTB
307	ahi_put16	ACC_PUTW
308	ahi_put32	ACC_PUTL
309	ahi_put64	ACC_PUTLL
310	ahi_rep_get8	ACC_REP_GETB
311	ahi_rep_get16	ACC_REP_GETW
312	ahi_rep_get32	ACC_REP_GETL
313	ahi_rep_get64	ACC_REP_GETLL
314	ahi_rep_put8	ACC_REP_PUTB
315	ahi_rep_put16	ACC_REP_PUTW
316	ahi_rep_put32	ACC_REP_PUTL
317	ahi_rep_put64	ACC_REP_PUTLL
318
319on_trap_data
320	ot_prot
321	ot_trap
322	ot_trampoline
323	ot_jmpbuf
324	ot_prev
325	ot_handle
326	ot_pad1
327
328trap_trace_ctl_t	__TRAPTR_SIZE TRAPTR_SIZE_SHIFT
329	ttc_next	TRAPTR_NEXT
330	ttc_first	TRAPTR_FIRST
331	ttc_limit	TRAPTR_LIMIT
332
333trap_trace_rec_t	TRAP_ENT_SIZE
334	ttr_cr2
335	ttr_info.idt_entry.vector	TTR_VECTOR
336	ttr_info.idt_entry.ipl		TTR_IPL
337	ttr_info.idt_entry.spl		TTR_SPL
338	ttr_info.idt_entry.pri		TTR_PRI
339	ttr_info.gate_entry.sysnum	TTR_SYSNUM
340	ttr_marker
341	ttr_stamp
342	ttr_curthread
343	ttr_sdepth
344	ttr_stack
345
346lgrp_ld
347	lpl_lgrpid
348
349dtrace_id_t	DTRACE_IDSIZE
350
351cpu_core	CPU_CORE_SIZE	CPU_CORE_SHIFT
352	cpuc_dtrace_flags
353	cpuc_dtrace_illval
354
355timespec	TIMESPEC_SIZE
356
357gate_desc	GATE_DESC_SIZE
358
359desctbr_t	DESCTBR_SIZE
360	dtr_limit
361	dtr_base
362
363mod_stub_info	MODS_SIZE
364	mods_func_adr	MODS_INSTFCN
365	mods_errfcn	MODS_RETFCN
366	mods_flag
367
368\#define	TRAP_TSIZE		_MUL(TRAP_ENT_SIZE, TRAPTR_NENT)
369
370copyops
371	cp_copyin
372	cp_xcopyin
373	cp_copyout
374	cp_xcopyout
375	cp_copyinstr
376	cp_copyoutstr
377	cp_fuword8
378	cp_fuword16
379	cp_fuword32
380	cp_fuword64
381	cp_suword8
382	cp_suword16
383	cp_suword32
384	cp_suword64
385	cp_physio
386
387brand
388	b_machops
389
390brand_proc_data_t
391	spd_handler
392
393fastboot_file_t
394	fb_va
395	fb_pte_list_va
396	fb_pte_list_pa
397	fb_dest_pa
398	fb_size
399	fb_next_pa
400	fb_sections
401	fb_sectcnt
402
403fastboot_section_t
404	fb_sec_offset
405	fb_sec_paddr
406	fb_sec_size
407	fb_sec_bss_size
408
409fastboot_info_t
410	fi_files
411	fi_has_pae
412	fi_pagetable_va
413	fi_pagetable_pa
414	fi_last_table_pa
415	fi_new_mbi_pa
416	fi_valid
417
418zone
419	zone_brand_data
420
421wc_cpu	WC_CPU_SIZE
422	wc_retaddr
423	wc_virtaddr
424	wc_cr0
425	wc_cr3
426	wc_cr4
427	wc_cr8
428	wc_fs
429	wc_fsbase
430	wc_gs
431	wc_gsbase
432	wc_kgsbase
433	wc_r8
434	wc_r9
435	wc_r10
436	wc_r11
437	wc_r12
438	wc_r13
439	wc_r14
440	wc_r15
441	wc_rax
442	wc_rbp
443	wc_rbx
444	wc_rcx
445	wc_rdi
446	wc_rdx
447	wc_rsi
448	wc_rsp
449	wc_gdt_limit	WC_GDT
450	wc_gdt_base
451	wc_idt_limit	WC_IDT
452	wc_idt_base
453	wc_tr
454	wc_ldt
455	wc_eflags
456	wc_ebx
457	wc_edi
458	wc_esi
459	wc_ebp
460	wc_esp
461	wc_esp
462	wc_ss
463	wc_cs
464	wc_ds
465	wc_es
466	wc_cpu_id
467	wc_saved_stack
468
469wc_wakecode
470	wc_cpu
471