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