Print this page
9600 LDT still not happy under KPTI
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 2018 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
↓ open down ↓ |
67 lines elided |
↑ open up ↑ |
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 - p_ldt
79 - p_ldt_desc
80 78 p_model
81 79 p_pctx
82 80 p_agenttp
83 81 p_zone
84 82 p_brand
85 83 p_brand_data
86 84
87 85 _kthread THREAD_SIZE
88 86 t_pcb T_LABEL
89 87 t_lock
90 88 t_lockstat
91 89 t_lockp
92 90 t_lock_flush
93 91 t_kpri_req
94 92 t_oldspl
95 93 t_pri
96 94 t_pil
97 95 t_lwp
98 96 t_procp
99 97 t_link
100 98 t_state
101 99 t_mstate
102 100 t_preempt_lk
103 101 t_stk T_STACK
104 102 t_swap
105 103 t_lwpchan.lc_wchan T_WCHAN
106 104 t_flag T_FLAGS
107 105 t_ctx
108 106 t_lofault
109 107 t_onfault
110 108 t_ontrap
111 109 t_cpu
112 110 t_lpl
113 111 t_bound_cpu
114 112 t_intr
115 113 t_forw
116 114 t_back
117 115 t_sig
118 116 t_tid
119 117 t_pre_sys
120 118 t_preempt
121 119 t_proc_flag
122 120 t_startpc
123 121 t_sysnum
124 122 t_intr_start
125 123 _tu._ts._t_astflag T_ASTFLAG
126 124 _tu._ts._t_post_sys T_POST_SYS
127 125 _tu._t_post_sys_ast T_POST_SYS_AST
128 126 t_copyops
129 127 #ifdef __amd64
130 128 t_useracc
131 129 #endif
132 130
133 131 ctxop
134 132 save_op CTXOP_SAVE
135 133
136 134 as
137 135 a_hat
138 136
139 137 user USIZEBYTES
140 138 u_comm
141 139 u_signal
142 140
143 141 _label_t
144 142 val LABEL_VAL
145 143
146 144 \#define LABEL_PC LABEL_VAL
147 145 \#define LABEL_SP _CONST(LABEL_VAL + LABEL_VAL_INCR)
148 146 \#define T_PC _CONST(T_LABEL + LABEL_PC)
149 147 \#define T_SP _CONST(T_LABEL + LABEL_SP)
150 148
151 149 _klwp
152 150 lwp_thread
153 151 lwp_procp
154 152 lwp_brand
155 153 lwp_eosys
156 154 lwp_regs
157 155 lwp_arg
158 156 lwp_ap
159 157 lwp_cursig
160 158 lwp_state
161 159 lwp_mstate.ms_acct LWP_MS_ACCT
162 160 lwp_mstate.ms_prev LWP_MS_PREV
163 161 lwp_mstate.ms_start LWP_MS_START
164 162 lwp_mstate.ms_state_start LWP_MS_STATE_START
165 163 lwp_pcb
166 164 lwp_ru.sysc LWP_RU_SYSC
167 165
168 166 \#define LWP_ACCT_USER _CONST(LWP_MS_ACCT + _MUL(LMS_USER, LWP_MS_ACCT_INCR))
169 167 \#define LWP_ACCT_SYSTEM _CONST(LWP_MS_ACCT + _MUL(LMS_SYSTEM, LWP_MS_ACCT_INCR))
170 168
171 169 fpu_ctx
172 170 fpu_regs FPU_CTX_FPU_REGS
173 171 fpu_flags FPU_CTX_FPU_FLAGS
174 172 fpu_xsave_mask FPU_CTX_FPU_XSAVE_MASK
175 173
176 174 fxsave_state FXSAVE_STATE_SIZE
177 175 fx_fsw FXSAVE_STATE_FSW
178 176 fx_mxcsr_mask FXSAVE_STATE_MXCSR_MASK
179 177
180 178
181 179 autovec AUTOVECSIZE
182 180 av_vector
183 181 av_intarg1
184 182 av_intarg2
185 183 av_ticksp
186 184 av_link
187 185 av_prilevel
188 186 av_dip
189 187
190 188 av_head
191 189 avh_link
192 190 avh_hi_pri
193 191 avh_lo_pri
194 192
195 193 cpu
196 194 cpu_id
197 195 cpu_flags
198 196 cpu_self
199 197 cpu_thread
200 198 cpu_thread_lock
201 199 cpu_kprunrun
202 200 cpu_lwp
203 201 cpu_fpowner
204 202 cpu_idle_thread
205 203 cpu_intr_thread
206 204 cpu_intr_actv
207 205 cpu_base_spl
208 206 cpu_intr_stack
209 207 cpu_stats.sys.cpumigrate CPU_STATS_SYS_CPUMIGRATE
210 208 cpu_stats.sys.intr CPU_STATS_SYS_INTR
211 209 cpu_stats.sys.intrblk CPU_STATS_SYS_INTRBLK
212 210 cpu_stats.sys.syscall CPU_STATS_SYS_SYSCALL
213 211 cpu_profile_pc
214 212 cpu_profile_upc
215 213 cpu_profile_pil
216 214 cpu_ftrace.ftd_state CPU_FTRACE_STATE
217 215 cpu_mstate
218 216 cpu_intracct
219 217
220 218 \#define CPU_INTR_ACTV_REF _CONST(CPU_INTR_ACTV + 2)
221 219
222 220 cpu
223 221 cpu_m.pil_high_start CPU_PIL_HIGH_START
224 222 cpu_m.intrstat CPU_INTRSTAT
225 223 cpu_m.mcpu_current_hat CPU_CURRENT_HAT
226 224 cpu_m.mcpu_gdt CPU_GDT
227 225 cpu_m.mcpu_idt CPU_IDT
228 226 cpu_m.mcpu_tss CPU_TSS
229 227 cpu_m.mcpu_softinfo CPU_SOFTINFO
230 228 cpu_m.mcpu_pri CPU_PRI
231 229 #if defined(__xpv)
232 230 cpu_m.mcpu_vcpu_info CPU_VCPU_INFO
233 231 #endif
234 232
235 233 cpu
236 234 cpu_m.mcpu_kpti.kf_kernel_cr3 CPU_KPTI_KCR3
237 235 cpu_m.mcpu_kpti.kf_user_cr3 CPU_KPTI_UCR3
238 236 cpu_m.mcpu_kpti.kf_tr_rsp CPU_KPTI_TR_RSP
239 237 cpu_m.mcpu_kpti.kf_tr_cr3 CPU_KPTI_TR_CR3
240 238 cpu_m.mcpu_kpti.kf_r13 CPU_KPTI_R13
241 239 cpu_m.mcpu_kpti.kf_r14 CPU_KPTI_R14
242 240 cpu_m.mcpu_kpti.kf_tr_ret_rsp CPU_KPTI_RET_RSP
243 241
244 242 cpu_m.mcpu_kpti.kf_ss CPU_KPTI_SS
245 243 cpu_m.mcpu_kpti.kf_rsp CPU_KPTI_RSP
246 244 cpu_m.mcpu_kpti.kf_rflags CPU_KPTI_RFLAGS
247 245 cpu_m.mcpu_kpti.kf_cs CPU_KPTI_CS
248 246 cpu_m.mcpu_kpti.kf_rip CPU_KPTI_RIP
249 247 cpu_m.mcpu_kpti.kf_err CPU_KPTI_ERR
250 248
251 249 cpu_m.mcpu_pad2 CPU_KPTI_START
252 250 cpu_m.mcpu_pad3 CPU_KPTI_END
253 251
254 252 cpu_m.mcpu_kpti_dbg CPU_KPTI_DBG
255 253
256 254 kpti_frame
257 255 kf_r14 KPTI_R14
258 256 kf_r13 KPTI_R13
259 257 kf_err KPTI_ERR
260 258 kf_rip KPTI_RIP
261 259 kf_cs KPTI_CS
262 260 kf_rflags KPTI_RFLAGS
263 261 kf_rsp KPTI_RSP
264 262 kf_ss KPTI_SS
265 263
266 264 kf_tr_rsp KPTI_TOP
267 265
268 266 kf_kernel_cr3 KPTI_KCR3
269 267 kf_user_cr3 KPTI_UCR3
270 268 kf_tr_ret_rsp KPTI_RET_RSP
271 269 kf_tr_cr3 KPTI_TR_CR3
272 270
273 271 kf_tr_flag KPTI_FLAG
274 272
275 273 standard_pic
276 274 c_curmask
277 275 c_iplmask
278 276
279 277 ddi_dma_impl
280 278 dmai_rflags
281 279 dmai_rdip
282 280
283 281 dev_info
284 282 devi_ops DEVI_DEV_OPS
285 283 devi_bus_ctl
286 284 devi_bus_dma_ctl
287 285 devi_bus_dma_allochdl
288 286 devi_bus_dma_freehdl
289 287 devi_bus_dma_bindhdl
290 288 devi_bus_dma_unbindhdl
291 289 devi_bus_dma_flush
292 290 devi_bus_dma_win
293 291
294 292 dev_ops
295 293 devo_bus_ops DEVI_BUS_OPS
296 294
297 295 bus_ops
298 296 bus_ctl OPS_CTL
299 297 bus_dma_map OPS_MAP
300 298 bus_dma_ctl OPS_MCTL
301 299 bus_dma_allochdl OPS_ALLOCHDL
302 300 bus_dma_freehdl OPS_FREEHDL
303 301 bus_dma_bindhdl OPS_BINDHDL
304 302 bus_dma_unbindhdl OPS_UNBINDHDL
305 303 bus_dma_flush OPS_FLUSH
306 304 bus_dma_win OPS_WIN
307 305
308 306 sysent SYSENT_SIZE SYSENT_SIZE_SHIFT
309 307 sy_callc
310 308 sy_flags
311 309 sy_narg
312 310
313 311 stdata
314 312 sd_lock
315 313
316 314 queue
317 315 q_flag
318 316 q_next
319 317 q_stream
320 318 q_syncq
321 319 q_qinfo
322 320
323 321 qinit
324 322 qi_putp
325 323
326 324 syncq
327 325 sq_flags
328 326 sq_count
329 327 sq_lock
330 328 sq_wait
331 329
332 330 rm_platter
333 331 rm_idt_lim IDTROFF
334 332 rm_gdt_lim GDTROFF
335 333 rm_pdbr CR3OFF
336 334 rm_cpu CPUNOFF
337 335 rm_cr4 CR4OFF
338 336 rm_cpu_halt_code CPUHALTCODEOFF
339 337 rm_cpu_halted CPUHALTEDOFF
340 338
341 339 ddi_acc_impl
342 340 ahi_acc_attr ACC_ATTR
343 341 ahi_get8 ACC_GETB
344 342 ahi_get16 ACC_GETW
345 343 ahi_get32 ACC_GETL
346 344 ahi_get64 ACC_GETLL
347 345 ahi_put8 ACC_PUTB
348 346 ahi_put16 ACC_PUTW
349 347 ahi_put32 ACC_PUTL
350 348 ahi_put64 ACC_PUTLL
351 349 ahi_rep_get8 ACC_REP_GETB
352 350 ahi_rep_get16 ACC_REP_GETW
353 351 ahi_rep_get32 ACC_REP_GETL
354 352 ahi_rep_get64 ACC_REP_GETLL
355 353 ahi_rep_put8 ACC_REP_PUTB
356 354 ahi_rep_put16 ACC_REP_PUTW
357 355 ahi_rep_put32 ACC_REP_PUTL
358 356 ahi_rep_put64 ACC_REP_PUTLL
359 357
360 358 on_trap_data
361 359 ot_prot
362 360 ot_trap
363 361 ot_trampoline
364 362 ot_jmpbuf
365 363 ot_prev
366 364 ot_handle
367 365 ot_pad1
368 366
369 367 trap_trace_ctl_t __TRAPTR_SIZE TRAPTR_SIZE_SHIFT
370 368 ttc_next TRAPTR_NEXT
371 369 ttc_first TRAPTR_FIRST
372 370 ttc_limit TRAPTR_LIMIT
373 371
374 372 trap_trace_rec_t TRAP_ENT_SIZE
375 373 ttr_cr2
376 374 ttr_info.idt_entry.vector TTR_VECTOR
377 375 ttr_info.idt_entry.ipl TTR_IPL
378 376 ttr_info.idt_entry.spl TTR_SPL
379 377 ttr_info.idt_entry.pri TTR_PRI
380 378 ttr_info.gate_entry.sysnum TTR_SYSNUM
381 379 ttr_marker
382 380 ttr_stamp
383 381 ttr_curthread
384 382 ttr_sdepth
385 383 ttr_stack
386 384
387 385 lgrp_ld
388 386 lpl_lgrpid
389 387
390 388 dtrace_id_t DTRACE_IDSIZE
391 389
392 390 cpu_core CPU_CORE_SIZE CPU_CORE_SHIFT
393 391 cpuc_dtrace_flags
394 392 cpuc_dtrace_illval
395 393
396 394 timespec TIMESPEC_SIZE
397 395
398 396 gate_desc GATE_DESC_SIZE
399 397
400 398 desctbr_t DESCTBR_SIZE
401 399 dtr_limit
402 400 dtr_base
403 401
404 402 mod_stub_info MODS_SIZE
405 403 mods_func_adr MODS_INSTFCN
406 404 mods_errfcn MODS_RETFCN
407 405 mods_flag
408 406
409 407 \#define TRAP_TSIZE _MUL(TRAP_ENT_SIZE, TRAPTR_NENT)
410 408
411 409 copyops
412 410 cp_copyin
413 411 cp_xcopyin
414 412 cp_copyout
415 413 cp_xcopyout
416 414 cp_copyinstr
417 415 cp_copyoutstr
418 416 cp_fuword8
419 417 cp_fuword16
420 418 cp_fuword32
421 419 cp_fuword64
422 420 cp_suword8
423 421 cp_suword16
424 422 cp_suword32
425 423 cp_suword64
426 424 cp_physio
427 425
428 426 brand
429 427 b_machops
430 428
431 429 brand_proc_data_t
432 430 spd_handler
433 431
434 432 fastboot_file_t
435 433 fb_va
436 434 fb_pte_list_va
437 435 fb_pte_list_pa
438 436 fb_dest_pa
439 437 fb_size
440 438 fb_next_pa
441 439 fb_sections
442 440 fb_sectcnt
443 441
444 442 fastboot_section_t
445 443 fb_sec_offset
446 444 fb_sec_paddr
447 445 fb_sec_size
448 446 fb_sec_bss_size
449 447
450 448 fastboot_info_t
451 449 fi_files
452 450 fi_has_pae
453 451 fi_pagetable_va
454 452 fi_pagetable_pa
455 453 fi_last_table_pa
456 454 fi_new_mbi_pa
457 455 fi_valid
458 456
459 457 zone
460 458 zone_brand_data
461 459
462 460 wc_cpu WC_CPU_SIZE
463 461 wc_retaddr
464 462 wc_virtaddr
465 463 wc_cr0
466 464 wc_cr3
467 465 wc_cr4
468 466 wc_cr8
469 467 wc_fs
470 468 wc_fsbase
471 469 wc_gs
472 470 wc_gsbase
473 471 wc_kgsbase
474 472 wc_r8
475 473 wc_r9
476 474 wc_r10
477 475 wc_r11
478 476 wc_r12
479 477 wc_r13
480 478 wc_r14
481 479 wc_r15
482 480 wc_rax
483 481 wc_rbp
484 482 wc_rbx
485 483 wc_rcx
486 484 wc_rdi
487 485 wc_rdx
488 486 wc_rsi
489 487 wc_rsp
490 488 wc_gdt_limit WC_GDT
491 489 wc_gdt_base
492 490 wc_idt_limit WC_IDT
493 491 wc_idt_base
494 492 wc_tr
495 493 wc_ldt
496 494 wc_eflags
497 495 wc_ebx
498 496 wc_edi
499 497 wc_esi
500 498 wc_ebp
501 499 wc_esp
502 500 wc_esp
503 501 wc_ss
504 502 wc_cs
505 503 wc_ds
506 504 wc_es
507 505 wc_cpu_id
508 506 wc_saved_stack
509 507
510 508 wc_wakecode
511 509 wc_cpu
512 510
513 511 comm_page_s COMM_PAGE_S_SIZE
↓ open down ↓ |
424 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX