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