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