xref: /titanic_50/usr/src/uts/intel/amd64/ml/mach_offsets.in (revision 711890bc9379ceea66272dc8d4981812224ea86e)
1\
2\ Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
3\ Use is subject to license terms.
4\
5\ CDDL HEADER START
6\
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.
10\
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.
15\
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]
21\
22\ CDDL HEADER END
23\
24
25#pragma ident	"%Z%%M%	%I%	%E% SMI"
26
27\
28\ offsets.in: input file to produce assym.h using the ctfstabs program
29\
30
31#ifndef	_GENASSYM
32#define	_GENASSYM
33#endif
34
35#define	SIZES	1
36
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/traptrace.h>
58#include <sys/ontrap.h>
59#include <sys/lgrp.h>
60#include <sys/dtrace.h>
61
62regs	REGSIZE
63	r_savfp	REGOFF_SAVFP
64	r_savpc	REGOFF_SAVPC
65	r_rdi	REGOFF_RDI
66	r_rsi	REGOFF_RSI
67	r_rdx	REGOFF_RDX
68	r_rcx	REGOFF_RCX
69	r_r8	REGOFF_R8
70	r_r9	REGOFF_R9
71	r_rax	REGOFF_RAX
72	r_rbx	REGOFF_RBX
73	r_rbp	REGOFF_RBP
74	r_r10	REGOFF_R10
75	r_r11	REGOFF_R11
76	r_r12	REGOFF_R12
77	r_r13	REGOFF_R13
78	r_r14	REGOFF_R14
79	r_r15	REGOFF_R15
80	r_ds	REGOFF_DS
81	r_es	REGOFF_ES
82	r_fs	REGOFF_FS
83	r_gs	REGOFF_GS
84	r_trapno	REGOFF_TRAPNO
85	r_err	REGOFF_ERR
86	r_rip	REGOFF_RIP
87	r_cs	REGOFF_CS
88	r_rfl	REGOFF_RFL
89	r_rsp	REGOFF_RSP
90	r_ss	REGOFF_SS
91
92\#define	REGOFF_PC	REGOFF_RIP
93
94boot_syscalls
95	bsvc_putchar	BOOTSVCS_PUTCHAR
96
97tss
98	tss_rsp0
99	tss_rsp1
100	tss_rsp2
101	tss_ist1
102	tss_ist2
103	tss_ist3
104	tss_ist4
105	tss_ist5
106	tss_ist6
107	tss_ist7
108
109\#define	LABEL_RBP	_CONST(_MUL(2, LABEL_VAL_INCR) + LABEL_VAL)
110\#define	LABEL_RBX	_CONST(_MUL(3, LABEL_VAL_INCR) + LABEL_VAL)
111\#define	LABEL_R12	_CONST(_MUL(4, LABEL_VAL_INCR) + LABEL_VAL)
112\#define	LABEL_R13	_CONST(_MUL(5, LABEL_VAL_INCR) + LABEL_VAL)
113\#define	LABEL_R14	_CONST(_MUL(6, LABEL_VAL_INCR) + LABEL_VAL)
114\#define	LABEL_R15	_CONST(_MUL(7, LABEL_VAL_INCR) + LABEL_VAL)
115\#define	T_RBP		_CONST(T_LABEL + LABEL_RBP)
116\#define	T_RBX		_CONST(T_LABEL + LABEL_RBX)
117\#define	T_R12		_CONST(T_LABEL + LABEL_R12)
118\#define	T_R13		_CONST(T_LABEL + LABEL_R13)
119\#define	T_R14		_CONST(T_LABEL + LABEL_R14)
120\#define	T_R15		_CONST(T_LABEL + LABEL_R15)
121
122_klwp
123	lwp_pcb.pcb_fpu		LWP_PCB_FPU
124	lwp_pcb.pcb_fsbase	LWP_PCB_FSBASE
125	lwp_pcb.pcb_gsbase	LWP_PCB_GSBASE
126	lwp_pcb.pcb_ds		LWP_PCB_DS
127	lwp_pcb.pcb_es		LWP_PCB_ES
128	lwp_pcb.pcb_fs		LWP_PCB_FS
129	lwp_pcb.pcb_gs		LWP_PCB_GS
130	lwp_pcb.pcb_drstat	LWP_PCB_DRSTAT
131	lwp_pcb.pcb_flags	PCB_FLAGS
132	lwp_pcb.pcb_fpu.fpu_regs LWP_FPU_REGS
133	lwp_pcb.pcb_fpu.fpu_flags LWP_FPU_FLAGS
134
135pcb	PCBSIZE
136	pcb_drstat
137	pcb_fsbase
138	pcb_gsbase
139	pcb_ds
140	pcb_es
141	pcb_fs
142	pcb_gs
143	pcb_fpu.fpu_regs	PCB_FPU_REGS
144	pcb_fpu.fpu_flags	PCB_FPU_FLAGS
145
146cpu
147	cpu_m.mcpu_rtmp_rsp	CPU_RTMP_RSP
148	cpu_m.mcpu_rtmp_r15	CPU_RTMP_R15
149
150rm_platter
151	rm_temp_gdt_lim		TEMPGDTOFF
152	rm_temp_idt_lim		TEMPIDTOFF
153	rm_longmode64_addr	LM64OFF
154