17c478bd9Sstevel@tonic-gate\
2ae115bc7Smrj\ Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
37c478bd9Sstevel@tonic-gate\ Use is subject to license terms.
47c478bd9Sstevel@tonic-gate\
57c478bd9Sstevel@tonic-gate\ CDDL HEADER START
67c478bd9Sstevel@tonic-gate\
77c478bd9Sstevel@tonic-gate\ The contents of this file are subject to the terms of the
8ae115bc7Smrj\ Common Development and Distribution License (the "License").
9ae115bc7Smrj\ You may not use this file except in compliance with the License.
107c478bd9Sstevel@tonic-gate\
117c478bd9Sstevel@tonic-gate\ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
127c478bd9Sstevel@tonic-gate\ or http://www.opensolaris.org/os/licensing.
137c478bd9Sstevel@tonic-gate\ See the License for the specific language governing permissions
147c478bd9Sstevel@tonic-gate\ and limitations under the License.
157c478bd9Sstevel@tonic-gate\
167c478bd9Sstevel@tonic-gate\ When distributing Covered Code, include this CDDL HEADER in each
177c478bd9Sstevel@tonic-gate\ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
187c478bd9Sstevel@tonic-gate\ If applicable, add the following below this CDDL HEADER, with the
197c478bd9Sstevel@tonic-gate\ fields enclosed by brackets "[]" replaced with your own identifying
207c478bd9Sstevel@tonic-gate\ information: Portions Copyright [yyyy] [name of copyright owner]
217c478bd9Sstevel@tonic-gate\
227c478bd9Sstevel@tonic-gate\ CDDL HEADER END
237c478bd9Sstevel@tonic-gate\
24*f16a0f4cSRobert Mustacchi\ Copyright 2011 Joyent, Inc. All rights reserved.
25*f16a0f4cSRobert Mustacchi\
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gate\
287c478bd9Sstevel@tonic-gate\ offsets.in: input file to produce assym.h using the ctfstabs program
297c478bd9Sstevel@tonic-gate\
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gate#ifndef	_GENASSYM
327c478bd9Sstevel@tonic-gate#define	_GENASSYM
337c478bd9Sstevel@tonic-gate#endif
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gate#define	SIZES	1
367c478bd9Sstevel@tonic-gate
37843e1988Sjohnlev
38843e1988Sjohnlev\
39843e1988Sjohnlev\ XXPV	This seems to be needed to avoid a namespace collisions with
40843e1988Sjohnlev\	some other header file in the list below.
41843e1988Sjohnlev\
42843e1988Sjohnlev
43843e1988Sjohnlev#if defined(__xpv)
44843e1988Sjohnlev#include <sys/hypervisor.h>
45843e1988Sjohnlev#endif
46843e1988Sjohnlev
477c478bd9Sstevel@tonic-gate#include <sys/types.h>
487c478bd9Sstevel@tonic-gate#include <sys/bootsvcs.h>
497c478bd9Sstevel@tonic-gate#include <sys/systm.h>
507c478bd9Sstevel@tonic-gate#include <sys/sysinfo.h>
517c478bd9Sstevel@tonic-gate#include <sys/user.h>
527c478bd9Sstevel@tonic-gate#include <sys/thread.h>
537c478bd9Sstevel@tonic-gate#include <sys/proc.h>
547c478bd9Sstevel@tonic-gate#include <sys/cpuvar.h>
557c478bd9Sstevel@tonic-gate#include <sys/tss.h>
567c478bd9Sstevel@tonic-gate#include <sys/privregs.h>
577c478bd9Sstevel@tonic-gate#include <sys/segments.h>
587c478bd9Sstevel@tonic-gate#include <sys/devops.h>
597c478bd9Sstevel@tonic-gate#include <sys/ddi_impldefs.h>
607c478bd9Sstevel@tonic-gate#include <vm/as.h>
617c478bd9Sstevel@tonic-gate#include <sys/avintr.h>
627c478bd9Sstevel@tonic-gate#include <sys/pic.h>
637c478bd9Sstevel@tonic-gate#include <sys/rm_platter.h>
647c478bd9Sstevel@tonic-gate#include <sys/stream.h>
657c478bd9Sstevel@tonic-gate#include <sys/strsubr.h>
667c478bd9Sstevel@tonic-gate#include <sys/sunddi.h>
677c478bd9Sstevel@tonic-gate#include <sys/traptrace.h>
687c478bd9Sstevel@tonic-gate#include <sys/ontrap.h>
697c478bd9Sstevel@tonic-gate#include <sys/lgrp.h>
707c478bd9Sstevel@tonic-gate#include <sys/dtrace.h>
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gateregs	REGSIZE
737c478bd9Sstevel@tonic-gate	r_savfp	REGOFF_SAVFP
747c478bd9Sstevel@tonic-gate	r_savpc	REGOFF_SAVPC
757c478bd9Sstevel@tonic-gate	r_rdi	REGOFF_RDI
767c478bd9Sstevel@tonic-gate	r_rsi	REGOFF_RSI
777c478bd9Sstevel@tonic-gate	r_rdx	REGOFF_RDX
787c478bd9Sstevel@tonic-gate	r_rcx	REGOFF_RCX
797c478bd9Sstevel@tonic-gate	r_r8	REGOFF_R8
807c478bd9Sstevel@tonic-gate	r_r9	REGOFF_R9
817c478bd9Sstevel@tonic-gate	r_rax	REGOFF_RAX
827c478bd9Sstevel@tonic-gate	r_rbx	REGOFF_RBX
837c478bd9Sstevel@tonic-gate	r_rbp	REGOFF_RBP
847c478bd9Sstevel@tonic-gate	r_r10	REGOFF_R10
857c478bd9Sstevel@tonic-gate	r_r11	REGOFF_R11
867c478bd9Sstevel@tonic-gate	r_r12	REGOFF_R12
877c478bd9Sstevel@tonic-gate	r_r13	REGOFF_R13
887c478bd9Sstevel@tonic-gate	r_r14	REGOFF_R14
897c478bd9Sstevel@tonic-gate	r_r15	REGOFF_R15
90ddece0baSsethg\#if DEBUG
91ddece0baSsethg	__r_fsbase	REGOFF_FSBASE
92ddece0baSsethg	__r_gsbase	REGOFF_GSBASE
93ddece0baSsethg\#endif
947c478bd9Sstevel@tonic-gate	r_ds	REGOFF_DS
957c478bd9Sstevel@tonic-gate	r_es	REGOFF_ES
967c478bd9Sstevel@tonic-gate	r_fs	REGOFF_FS
977c478bd9Sstevel@tonic-gate	r_gs	REGOFF_GS
987c478bd9Sstevel@tonic-gate	r_trapno	REGOFF_TRAPNO
997c478bd9Sstevel@tonic-gate	r_err	REGOFF_ERR
1007c478bd9Sstevel@tonic-gate	r_rip	REGOFF_RIP
1017c478bd9Sstevel@tonic-gate	r_cs	REGOFF_CS
1027c478bd9Sstevel@tonic-gate	r_rfl	REGOFF_RFL
1037c478bd9Sstevel@tonic-gate	r_rsp	REGOFF_RSP
1047c478bd9Sstevel@tonic-gate	r_ss	REGOFF_SS
1057c478bd9Sstevel@tonic-gate
1067c478bd9Sstevel@tonic-gate\#define	REGOFF_PC	REGOFF_RIP
1077c478bd9Sstevel@tonic-gate
1087c478bd9Sstevel@tonic-gateboot_syscalls
1097c478bd9Sstevel@tonic-gate	bsvc_putchar	BOOTSVCS_PUTCHAR
1107c478bd9Sstevel@tonic-gate
111*f16a0f4cSRobert Mustacchitss_t
1127c478bd9Sstevel@tonic-gate	tss_rsp0
1137c478bd9Sstevel@tonic-gate	tss_rsp1
1147c478bd9Sstevel@tonic-gate	tss_rsp2
1157c478bd9Sstevel@tonic-gate	tss_ist1
1167c478bd9Sstevel@tonic-gate	tss_ist2
1177c478bd9Sstevel@tonic-gate	tss_ist3
1187c478bd9Sstevel@tonic-gate	tss_ist4
1197c478bd9Sstevel@tonic-gate	tss_ist5
1207c478bd9Sstevel@tonic-gate	tss_ist6
1217c478bd9Sstevel@tonic-gate	tss_ist7
1227c478bd9Sstevel@tonic-gate
1237c478bd9Sstevel@tonic-gate\#define	LABEL_RBP	_CONST(_MUL(2, LABEL_VAL_INCR) + LABEL_VAL)
1247c478bd9Sstevel@tonic-gate\#define	LABEL_RBX	_CONST(_MUL(3, LABEL_VAL_INCR) + LABEL_VAL)
1257c478bd9Sstevel@tonic-gate\#define	LABEL_R12	_CONST(_MUL(4, LABEL_VAL_INCR) + LABEL_VAL)
1267c478bd9Sstevel@tonic-gate\#define	LABEL_R13	_CONST(_MUL(5, LABEL_VAL_INCR) + LABEL_VAL)
1277c478bd9Sstevel@tonic-gate\#define	LABEL_R14	_CONST(_MUL(6, LABEL_VAL_INCR) + LABEL_VAL)
1287c478bd9Sstevel@tonic-gate\#define	LABEL_R15	_CONST(_MUL(7, LABEL_VAL_INCR) + LABEL_VAL)
1297c478bd9Sstevel@tonic-gate\#define	T_RBP		_CONST(T_LABEL + LABEL_RBP)
1307c478bd9Sstevel@tonic-gate\#define	T_RBX		_CONST(T_LABEL + LABEL_RBX)
1317c478bd9Sstevel@tonic-gate\#define	T_R12		_CONST(T_LABEL + LABEL_R12)
1327c478bd9Sstevel@tonic-gate\#define	T_R13		_CONST(T_LABEL + LABEL_R13)
1337c478bd9Sstevel@tonic-gate\#define	T_R14		_CONST(T_LABEL + LABEL_R14)
1347c478bd9Sstevel@tonic-gate\#define	T_R15		_CONST(T_LABEL + LABEL_R15)
1357c478bd9Sstevel@tonic-gate
1367c478bd9Sstevel@tonic-gate_klwp
1377c478bd9Sstevel@tonic-gate	lwp_pcb.pcb_fpu		LWP_PCB_FPU
1387c478bd9Sstevel@tonic-gate	lwp_pcb.pcb_fsbase	LWP_PCB_FSBASE
1397c478bd9Sstevel@tonic-gate	lwp_pcb.pcb_gsbase	LWP_PCB_GSBASE
1407c478bd9Sstevel@tonic-gate	lwp_pcb.pcb_ds		LWP_PCB_DS
1417c478bd9Sstevel@tonic-gate	lwp_pcb.pcb_es		LWP_PCB_ES
1427c478bd9Sstevel@tonic-gate	lwp_pcb.pcb_fs		LWP_PCB_FS
1437c478bd9Sstevel@tonic-gate	lwp_pcb.pcb_gs		LWP_PCB_GS
1447c478bd9Sstevel@tonic-gate	lwp_pcb.pcb_drstat	LWP_PCB_DRSTAT
1457c478bd9Sstevel@tonic-gate	lwp_pcb.pcb_flags	PCB_FLAGS
1467c478bd9Sstevel@tonic-gate	lwp_pcb.pcb_fpu.fpu_regs LWP_FPU_REGS
1477c478bd9Sstevel@tonic-gate	lwp_pcb.pcb_fpu.fpu_flags LWP_FPU_FLAGS
1487712e92cSsudheer	lwp_pcb.pcb_rupdate	PCB_RUPDATE
1497c478bd9Sstevel@tonic-gate
1507c478bd9Sstevel@tonic-gatepcb	PCBSIZE
1517c478bd9Sstevel@tonic-gate	pcb_drstat
1527c478bd9Sstevel@tonic-gate	pcb_fsbase
1537c478bd9Sstevel@tonic-gate	pcb_gsbase
1547c478bd9Sstevel@tonic-gate	pcb_ds
1557c478bd9Sstevel@tonic-gate	pcb_es
1567c478bd9Sstevel@tonic-gate	pcb_fs
1577c478bd9Sstevel@tonic-gate	pcb_gs
1587c478bd9Sstevel@tonic-gate	pcb_fpu.fpu_regs	PCB_FPU_REGS
1597c478bd9Sstevel@tonic-gate	pcb_fpu.fpu_flags	PCB_FPU_FLAGS
1607c478bd9Sstevel@tonic-gate
1617c478bd9Sstevel@tonic-gatecpu
1627c478bd9Sstevel@tonic-gate	cpu_m.mcpu_rtmp_rsp	CPU_RTMP_RSP
1637c478bd9Sstevel@tonic-gate	cpu_m.mcpu_rtmp_r15	CPU_RTMP_R15
1647c478bd9Sstevel@tonic-gate
1657c478bd9Sstevel@tonic-gaterm_platter
1667c478bd9Sstevel@tonic-gate	rm_temp_gdt_lim		TEMPGDTOFF
1677c478bd9Sstevel@tonic-gate	rm_temp_idt_lim		TEMPIDTOFF
1687c478bd9Sstevel@tonic-gate	rm_longmode64_addr	LM64OFF
169843e1988Sjohnlev
170843e1988Sjohnlev#if defined(__xpv)
171843e1988Sjohnlev
172843e1988Sjohnlevvcpu_info
173843e1988Sjohnlev	evtchn_upcall_pending	VCPU_INFO_EVTCHN_UPCALL_PENDING
174843e1988Sjohnlev	evtchn_upcall_mask	VCPU_INFO_EVTCHN_UPCALL_MASK
175843e1988Sjohnlev	arch.cr2		VCPU_INFO_ARCH_CR2
176843e1988Sjohnlev
177843e1988Sjohnlev#endif	/* __xpv */
178