xref: /onnv-gate/usr/src/uts/intel/amd64/ml/mach_offsets.in (revision 5084:7d838c5c0eed)
10Sstevel@tonic-gate\
23446Smrj\ Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
30Sstevel@tonic-gate\ Use is subject to license terms.
40Sstevel@tonic-gate\
50Sstevel@tonic-gate\ CDDL HEADER START
60Sstevel@tonic-gate\
70Sstevel@tonic-gate\ The contents of this file are subject to the terms of the
83446Smrj\ Common Development and Distribution License (the "License").
93446Smrj\ You may not use this file except in compliance with the License.
100Sstevel@tonic-gate\
110Sstevel@tonic-gate\ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
120Sstevel@tonic-gate\ or http://www.opensolaris.org/os/licensing.
130Sstevel@tonic-gate\ See the License for the specific language governing permissions
140Sstevel@tonic-gate\ and limitations under the License.
150Sstevel@tonic-gate\
160Sstevel@tonic-gate\ When distributing Covered Code, include this CDDL HEADER in each
170Sstevel@tonic-gate\ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
180Sstevel@tonic-gate\ If applicable, add the following below this CDDL HEADER, with the
190Sstevel@tonic-gate\ fields enclosed by brackets "[]" replaced with your own identifying
200Sstevel@tonic-gate\ information: Portions Copyright [yyyy] [name of copyright owner]
210Sstevel@tonic-gate\
220Sstevel@tonic-gate\ CDDL HEADER END
230Sstevel@tonic-gate\
240Sstevel@tonic-gate
250Sstevel@tonic-gate#pragma ident	"%Z%%M%	%I%	%E% SMI"
260Sstevel@tonic-gate
270Sstevel@tonic-gate\
280Sstevel@tonic-gate\ offsets.in: input file to produce assym.h using the ctfstabs program
290Sstevel@tonic-gate\
300Sstevel@tonic-gate
310Sstevel@tonic-gate#ifndef	_GENASSYM
320Sstevel@tonic-gate#define	_GENASSYM
330Sstevel@tonic-gate#endif
340Sstevel@tonic-gate
350Sstevel@tonic-gate#define	SIZES	1
360Sstevel@tonic-gate
37*5084Sjohnlev
38*5084Sjohnlev\
39*5084Sjohnlev\ XXPV	This seems to be needed to avoid a namespace collisions with
40*5084Sjohnlev\	some other header file in the list below.
41*5084Sjohnlev\
42*5084Sjohnlev
43*5084Sjohnlev#if defined(__xpv)
44*5084Sjohnlev#include <sys/hypervisor.h>
45*5084Sjohnlev#endif
46*5084Sjohnlev
470Sstevel@tonic-gate#include <sys/types.h>
480Sstevel@tonic-gate#include <sys/bootsvcs.h>
490Sstevel@tonic-gate#include <sys/systm.h>
500Sstevel@tonic-gate#include <sys/sysinfo.h>
510Sstevel@tonic-gate#include <sys/user.h>
520Sstevel@tonic-gate#include <sys/thread.h>
530Sstevel@tonic-gate#include <sys/proc.h>
540Sstevel@tonic-gate#include <sys/cpuvar.h>
550Sstevel@tonic-gate#include <sys/tss.h>
560Sstevel@tonic-gate#include <sys/privregs.h>
570Sstevel@tonic-gate#include <sys/segments.h>
580Sstevel@tonic-gate#include <sys/devops.h>
590Sstevel@tonic-gate#include <sys/ddi_impldefs.h>
600Sstevel@tonic-gate#include <vm/as.h>
610Sstevel@tonic-gate#include <sys/avintr.h>
620Sstevel@tonic-gate#include <sys/pic.h>
630Sstevel@tonic-gate#include <sys/rm_platter.h>
640Sstevel@tonic-gate#include <sys/stream.h>
650Sstevel@tonic-gate#include <sys/strsubr.h>
660Sstevel@tonic-gate#include <sys/sunddi.h>
670Sstevel@tonic-gate#include <sys/traptrace.h>
680Sstevel@tonic-gate#include <sys/ontrap.h>
690Sstevel@tonic-gate#include <sys/lgrp.h>
700Sstevel@tonic-gate#include <sys/dtrace.h>
710Sstevel@tonic-gate
720Sstevel@tonic-gateregs	REGSIZE
730Sstevel@tonic-gate	r_savfp	REGOFF_SAVFP
740Sstevel@tonic-gate	r_savpc	REGOFF_SAVPC
750Sstevel@tonic-gate	r_rdi	REGOFF_RDI
760Sstevel@tonic-gate	r_rsi	REGOFF_RSI
770Sstevel@tonic-gate	r_rdx	REGOFF_RDX
780Sstevel@tonic-gate	r_rcx	REGOFF_RCX
790Sstevel@tonic-gate	r_r8	REGOFF_R8
800Sstevel@tonic-gate	r_r9	REGOFF_R9
810Sstevel@tonic-gate	r_rax	REGOFF_RAX
820Sstevel@tonic-gate	r_rbx	REGOFF_RBX
830Sstevel@tonic-gate	r_rbp	REGOFF_RBP
840Sstevel@tonic-gate	r_r10	REGOFF_R10
850Sstevel@tonic-gate	r_r11	REGOFF_R11
860Sstevel@tonic-gate	r_r12	REGOFF_R12
870Sstevel@tonic-gate	r_r13	REGOFF_R13
880Sstevel@tonic-gate	r_r14	REGOFF_R14
890Sstevel@tonic-gate	r_r15	REGOFF_R15
903939Ssethg\#if DEBUG
913939Ssethg	__r_fsbase	REGOFF_FSBASE
923939Ssethg	__r_gsbase	REGOFF_GSBASE
933939Ssethg\#endif
940Sstevel@tonic-gate	r_ds	REGOFF_DS
950Sstevel@tonic-gate	r_es	REGOFF_ES
960Sstevel@tonic-gate	r_fs	REGOFF_FS
970Sstevel@tonic-gate	r_gs	REGOFF_GS
980Sstevel@tonic-gate	r_trapno	REGOFF_TRAPNO
990Sstevel@tonic-gate	r_err	REGOFF_ERR
1000Sstevel@tonic-gate	r_rip	REGOFF_RIP
1010Sstevel@tonic-gate	r_cs	REGOFF_CS
1020Sstevel@tonic-gate	r_rfl	REGOFF_RFL
1030Sstevel@tonic-gate	r_rsp	REGOFF_RSP
1040Sstevel@tonic-gate	r_ss	REGOFF_SS
1050Sstevel@tonic-gate
1060Sstevel@tonic-gate\#define	REGOFF_PC	REGOFF_RIP
1070Sstevel@tonic-gate
1080Sstevel@tonic-gateboot_syscalls
1090Sstevel@tonic-gate	bsvc_putchar	BOOTSVCS_PUTCHAR
1100Sstevel@tonic-gate
1110Sstevel@tonic-gatetss
1120Sstevel@tonic-gate	tss_rsp0
1130Sstevel@tonic-gate	tss_rsp1
1140Sstevel@tonic-gate	tss_rsp2
1150Sstevel@tonic-gate	tss_ist1
1160Sstevel@tonic-gate	tss_ist2
1170Sstevel@tonic-gate	tss_ist3
1180Sstevel@tonic-gate	tss_ist4
1190Sstevel@tonic-gate	tss_ist5
1200Sstevel@tonic-gate	tss_ist6
1210Sstevel@tonic-gate	tss_ist7
1220Sstevel@tonic-gate
1230Sstevel@tonic-gate\#define	LABEL_RBP	_CONST(_MUL(2, LABEL_VAL_INCR) + LABEL_VAL)
1240Sstevel@tonic-gate\#define	LABEL_RBX	_CONST(_MUL(3, LABEL_VAL_INCR) + LABEL_VAL)
1250Sstevel@tonic-gate\#define	LABEL_R12	_CONST(_MUL(4, LABEL_VAL_INCR) + LABEL_VAL)
1260Sstevel@tonic-gate\#define	LABEL_R13	_CONST(_MUL(5, LABEL_VAL_INCR) + LABEL_VAL)
1270Sstevel@tonic-gate\#define	LABEL_R14	_CONST(_MUL(6, LABEL_VAL_INCR) + LABEL_VAL)
1280Sstevel@tonic-gate\#define	LABEL_R15	_CONST(_MUL(7, LABEL_VAL_INCR) + LABEL_VAL)
1290Sstevel@tonic-gate\#define	T_RBP		_CONST(T_LABEL + LABEL_RBP)
1300Sstevel@tonic-gate\#define	T_RBX		_CONST(T_LABEL + LABEL_RBX)
1310Sstevel@tonic-gate\#define	T_R12		_CONST(T_LABEL + LABEL_R12)
1320Sstevel@tonic-gate\#define	T_R13		_CONST(T_LABEL + LABEL_R13)
1330Sstevel@tonic-gate\#define	T_R14		_CONST(T_LABEL + LABEL_R14)
1340Sstevel@tonic-gate\#define	T_R15		_CONST(T_LABEL + LABEL_R15)
1350Sstevel@tonic-gate
1360Sstevel@tonic-gate_klwp
1370Sstevel@tonic-gate	lwp_pcb.pcb_fpu		LWP_PCB_FPU
1380Sstevel@tonic-gate	lwp_pcb.pcb_fsbase	LWP_PCB_FSBASE
1390Sstevel@tonic-gate	lwp_pcb.pcb_gsbase	LWP_PCB_GSBASE
1400Sstevel@tonic-gate	lwp_pcb.pcb_ds		LWP_PCB_DS
1410Sstevel@tonic-gate	lwp_pcb.pcb_es		LWP_PCB_ES
1420Sstevel@tonic-gate	lwp_pcb.pcb_fs		LWP_PCB_FS
1430Sstevel@tonic-gate	lwp_pcb.pcb_gs		LWP_PCB_GS
1440Sstevel@tonic-gate	lwp_pcb.pcb_drstat	LWP_PCB_DRSTAT
1450Sstevel@tonic-gate	lwp_pcb.pcb_flags	PCB_FLAGS
1460Sstevel@tonic-gate	lwp_pcb.pcb_fpu.fpu_regs LWP_FPU_REGS
1470Sstevel@tonic-gate	lwp_pcb.pcb_fpu.fpu_flags LWP_FPU_FLAGS
1484503Ssudheer	lwp_pcb.pcb_rupdate	PCB_RUPDATE
1490Sstevel@tonic-gate
1500Sstevel@tonic-gatepcb	PCBSIZE
1510Sstevel@tonic-gate	pcb_drstat
1520Sstevel@tonic-gate	pcb_fsbase
1530Sstevel@tonic-gate	pcb_gsbase
1540Sstevel@tonic-gate	pcb_ds
1550Sstevel@tonic-gate	pcb_es
1560Sstevel@tonic-gate	pcb_fs
1570Sstevel@tonic-gate	pcb_gs
1580Sstevel@tonic-gate	pcb_fpu.fpu_regs	PCB_FPU_REGS
1590Sstevel@tonic-gate	pcb_fpu.fpu_flags	PCB_FPU_FLAGS
1600Sstevel@tonic-gate
1610Sstevel@tonic-gatecpu
1620Sstevel@tonic-gate	cpu_m.mcpu_rtmp_rsp	CPU_RTMP_RSP
1630Sstevel@tonic-gate	cpu_m.mcpu_rtmp_r15	CPU_RTMP_R15
1640Sstevel@tonic-gate
1650Sstevel@tonic-gaterm_platter
1660Sstevel@tonic-gate	rm_temp_gdt_lim		TEMPGDTOFF
1670Sstevel@tonic-gate	rm_temp_idt_lim		TEMPIDTOFF
1680Sstevel@tonic-gate	rm_longmode64_addr	LM64OFF
169*5084Sjohnlev
170*5084Sjohnlev#if defined(__xpv)
171*5084Sjohnlev
172*5084Sjohnlevvcpu_info
173*5084Sjohnlev	evtchn_upcall_pending	VCPU_INFO_EVTCHN_UPCALL_PENDING
174*5084Sjohnlev	evtchn_upcall_mask	VCPU_INFO_EVTCHN_UPCALL_MASK
175*5084Sjohnlev	arch.cr2		VCPU_INFO_ARCH_CR2
176*5084Sjohnlev
177*5084Sjohnlev#endif	/* __xpv */
178