dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / arch / x86 / kernel / mach_offsets_64.in
blob6c5a82db99236b94f9ffabf98cefcd2e66d64975
2 \ Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
3 \ Use is subject to license terms.
5 \ CDDL HEADER START
7 \ The contents of this file are subject to the terms of the
8 \ Common Development and Distribution License (the "License").
9 \ You may not use this file except in compliance with the License.
11 \ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12 \ or http://www.opensolaris.org/os/licensing.
13 \ See the License for the specific language governing permissions
14 \ and limitations under the License.
16 \ When distributing Covered Code, include this CDDL HEADER in each
17 \ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18 \ If applicable, add the following below this CDDL HEADER, with the
19 \ fields enclosed by brackets "[]" replaced with your own identifying
20 \ information: Portions Copyright [yyyy] [name of copyright owner]
22 \ CDDL HEADER END
24 \ Copyright 2011 Joyent, Inc. All rights reserved.
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
39 \ XXPV  This seems to be needed to avoid a namespace collisions with
40 \       some other header file in the list below.
44 #include <sys/types.h>
45 #include <sys/bootsvcs.h>
46 #include <sys/systm.h>
47 #include <sys/sysinfo.h>
48 #include <sys/user.h>
49 #include <sys/thread.h>
50 #include <sys/proc.h>
51 #include <sys/cpuvar.h>
52 #include <sys/tss.h>
53 #include <sys/privregs.h>
54 #include <sys/segments.h>
55 #include <sys/devops.h>
56 #include <sys/ddi_impldefs.h>
57 #include <vm/as.h>
58 #include <sys/avintr.h>
59 #include <sys/pic.h>
60 #include <sys/rm_platter.h>
61 #include <sys/stream.h>
62 #include <sys/strsubr.h>
63 #include <sys/sunddi.h>
64 #include <sys/traptrace.h>
65 #include <sys/ontrap.h>
66 #include <sys/lgrp.h>
67 #include <sys/dtrace.h>
69 regs    REGSIZE
70         r_savfp REGOFF_SAVFP
71         r_savpc REGOFF_SAVPC
72         r_rdi   REGOFF_RDI
73         r_rsi   REGOFF_RSI
74         r_rdx   REGOFF_RDX
75         r_rcx   REGOFF_RCX
76         r_r8    REGOFF_R8
77         r_r9    REGOFF_R9
78         r_rax   REGOFF_RAX
79         r_rbx   REGOFF_RBX
80         r_rbp   REGOFF_RBP
81         r_r10   REGOFF_R10
82         r_r11   REGOFF_R11
83         r_r12   REGOFF_R12
84         r_r13   REGOFF_R13
85         r_r14   REGOFF_R14
86         r_r15   REGOFF_R15
87 \#if DEBUG
88         __r_fsbase      REGOFF_FSBASE
89         __r_gsbase      REGOFF_GSBASE
90 \#endif
91         r_ds    REGOFF_DS
92         r_es    REGOFF_ES
93         r_fs    REGOFF_FS
94         r_gs    REGOFF_GS
95         r_trapno        REGOFF_TRAPNO
96         r_err   REGOFF_ERR
97         r_rip   REGOFF_RIP
98         r_cs    REGOFF_CS
99         r_rfl   REGOFF_RFL
100         r_rsp   REGOFF_RSP
101         r_ss    REGOFF_SS
103 \#define        REGOFF_PC       REGOFF_RIP
105 boot_syscalls
106         bsvc_putchar    BOOTSVCS_PUTCHAR
108 tss_t
109         tss_rsp0
110         tss_rsp1
111         tss_rsp2
112         tss_ist1
113         tss_ist2
114         tss_ist3
115         tss_ist4
116         tss_ist5
117         tss_ist6
118         tss_ist7
120 \#define        LABEL_RBP       _CONST(_MUL(2, LABEL_VAL_INCR) + LABEL_VAL)
121 \#define        LABEL_RBX       _CONST(_MUL(3, LABEL_VAL_INCR) + LABEL_VAL)
122 \#define        LABEL_R12       _CONST(_MUL(4, LABEL_VAL_INCR) + LABEL_VAL)
123 \#define        LABEL_R13       _CONST(_MUL(5, LABEL_VAL_INCR) + LABEL_VAL)
124 \#define        LABEL_R14       _CONST(_MUL(6, LABEL_VAL_INCR) + LABEL_VAL)
125 \#define        LABEL_R15       _CONST(_MUL(7, LABEL_VAL_INCR) + LABEL_VAL)
126 \#define        T_RBP           _CONST(T_LABEL + LABEL_RBP)
127 \#define        T_RBX           _CONST(T_LABEL + LABEL_RBX)
128 \#define        T_R12           _CONST(T_LABEL + LABEL_R12)
129 \#define        T_R13           _CONST(T_LABEL + LABEL_R13)
130 \#define        T_R14           _CONST(T_LABEL + LABEL_R14)
131 \#define        T_R15           _CONST(T_LABEL + LABEL_R15)
133 _klwp
134         lwp_pcb.pcb_fpu         LWP_PCB_FPU
135         lwp_pcb.pcb_fsbase      LWP_PCB_FSBASE
136         lwp_pcb.pcb_gsbase      LWP_PCB_GSBASE
137         lwp_pcb.pcb_ds          LWP_PCB_DS
138         lwp_pcb.pcb_es          LWP_PCB_ES
139         lwp_pcb.pcb_fs          LWP_PCB_FS
140         lwp_pcb.pcb_gs          LWP_PCB_GS
141         lwp_pcb.pcb_drstat      LWP_PCB_DRSTAT
142         lwp_pcb.pcb_flags       PCB_FLAGS
143         lwp_pcb.pcb_fpu.fpu_regs LWP_FPU_REGS
144         lwp_pcb.pcb_fpu.fpu_flags LWP_FPU_FLAGS
145         lwp_pcb.pcb_rupdate     PCB_RUPDATE
147 pcb     PCBSIZE
148         pcb_drstat
149         pcb_fsbase
150         pcb_gsbase
151         pcb_ds
152         pcb_es
153         pcb_fs
154         pcb_gs
155         pcb_fpu.fpu_regs        PCB_FPU_REGS
156         pcb_fpu.fpu_flags       PCB_FPU_FLAGS
159         cpu_m.mcpu_rtmp_rsp     CPU_RTMP_RSP
160         cpu_m.mcpu_rtmp_r15     CPU_RTMP_R15
162 rm_platter
163         rm_temp_gdt_lim         TEMPGDTOFF
164         rm_temp_idt_lim         TEMPIDTOFF
165         rm_longmode64_addr      LM64OFF