17c478bd9Sstevel@tonic-gate\ 27c478bd9Sstevel@tonic-gate\ Copyright 2005 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 8843e1988Sjohnlev\ Common Development and Distribution License (the "License"). 9843e1988Sjohnlev\ 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#if defined(__xpv) 38843e1988Sjohnlev\ 39843e1988Sjohnlev\ XXPV This seems to need to be first to avoid a namespace collision 40843e1988Sjohnlev\ with another header file in the list below. 41843e1988Sjohnlev\ 42843e1988Sjohnlev#include <sys/hypervisor.h> 43843e1988Sjohnlev#endif 44843e1988Sjohnlev 457c478bd9Sstevel@tonic-gate#include <sys/types.h> 467c478bd9Sstevel@tonic-gate#include <sys/bootsvcs.h> 477c478bd9Sstevel@tonic-gate#include <sys/systm.h> 487c478bd9Sstevel@tonic-gate#include <sys/sysinfo.h> 497c478bd9Sstevel@tonic-gate#include <sys/user.h> 507c478bd9Sstevel@tonic-gate#include <sys/thread.h> 517c478bd9Sstevel@tonic-gate#include <sys/proc.h> 527c478bd9Sstevel@tonic-gate#include <sys/cpuvar.h> 537c478bd9Sstevel@tonic-gate#include <sys/tss.h> 547c478bd9Sstevel@tonic-gate#include <sys/privregs.h> 557c478bd9Sstevel@tonic-gate#include <sys/segments.h> 567c478bd9Sstevel@tonic-gate#include <sys/devops.h> 577c478bd9Sstevel@tonic-gate#include <sys/ddi_impldefs.h> 587c478bd9Sstevel@tonic-gate#include <vm/as.h> 597c478bd9Sstevel@tonic-gate#include <sys/avintr.h> 607c478bd9Sstevel@tonic-gate#include <sys/pic.h> 617c478bd9Sstevel@tonic-gate#include <sys/rm_platter.h> 627c478bd9Sstevel@tonic-gate#include <sys/stream.h> 637c478bd9Sstevel@tonic-gate#include <sys/strsubr.h> 647c478bd9Sstevel@tonic-gate#include <sys/sunddi.h> 657c478bd9Sstevel@tonic-gate#include <sys/traptrace.h> 667c478bd9Sstevel@tonic-gate#include <sys/ontrap.h> 677c478bd9Sstevel@tonic-gate#include <sys/lgrp.h> 687c478bd9Sstevel@tonic-gate#include <sys/dtrace.h> 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gateregs REGSIZE 717c478bd9Sstevel@tonic-gate r_savfp REGOFF_SAVFP 727c478bd9Sstevel@tonic-gate r_savpc REGOFF_SAVPC 737c478bd9Sstevel@tonic-gate r_gs REGOFF_GS 747c478bd9Sstevel@tonic-gate r_fs REGOFF_FS 757c478bd9Sstevel@tonic-gate r_es REGOFF_ES 767c478bd9Sstevel@tonic-gate r_ds REGOFF_DS 777c478bd9Sstevel@tonic-gate r_edi REGOFF_EDI 787c478bd9Sstevel@tonic-gate r_esi REGOFF_ESI 797c478bd9Sstevel@tonic-gate r_ebp REGOFF_EBP 807c478bd9Sstevel@tonic-gate r_esp REGOFF_ESP 817c478bd9Sstevel@tonic-gate r_ebx REGOFF_EBX 827c478bd9Sstevel@tonic-gate r_edx REGOFF_EDX 837c478bd9Sstevel@tonic-gate r_ecx REGOFF_ECX 847c478bd9Sstevel@tonic-gate r_eax REGOFF_EAX 857c478bd9Sstevel@tonic-gate r_trapno REGOFF_TRAPNO 867c478bd9Sstevel@tonic-gate r_err REGOFF_ERR 877c478bd9Sstevel@tonic-gate r_eip REGOFF_EIP 887c478bd9Sstevel@tonic-gate r_cs REGOFF_CS 897c478bd9Sstevel@tonic-gate r_efl REGOFF_EFL 907c478bd9Sstevel@tonic-gate r_uesp REGOFF_UESP 917c478bd9Sstevel@tonic-gate r_ss REGOFF_SS 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gate\#define REGOFF_PC REGOFF_EIP 947c478bd9Sstevel@tonic-gate 95*f16a0f4cSRobert Mustacchitss_t 967c478bd9Sstevel@tonic-gate tss_esp0 TSS_ESP0 977c478bd9Sstevel@tonic-gate tss_ss0 TSS_SS0 987c478bd9Sstevel@tonic-gate tss_ldt TSS_LDT 997c478bd9Sstevel@tonic-gate tss_cr3 TSS_CR3 1007c478bd9Sstevel@tonic-gate tss_cs TSS_CS 1017c478bd9Sstevel@tonic-gate tss_ss TSS_SS 1027c478bd9Sstevel@tonic-gate tss_ds TSS_DS 1037c478bd9Sstevel@tonic-gate tss_es TSS_ES 1047c478bd9Sstevel@tonic-gate tss_fs TSS_FS 1057c478bd9Sstevel@tonic-gate tss_gs TSS_GS 1067c478bd9Sstevel@tonic-gate tss_ebp TSS_EBP 1077c478bd9Sstevel@tonic-gate tss_eip TSS_EIP 1087c478bd9Sstevel@tonic-gate tss_eflags TSS_EFL 1097c478bd9Sstevel@tonic-gate tss_esp TSS_ESP 1107c478bd9Sstevel@tonic-gate tss_eax TSS_EAX 1117c478bd9Sstevel@tonic-gate tss_ebx TSS_EBX 1127c478bd9Sstevel@tonic-gate tss_ecx TSS_ECX 1137c478bd9Sstevel@tonic-gate tss_edx TSS_EDX 1147c478bd9Sstevel@tonic-gate tss_esi TSS_ESI 1157c478bd9Sstevel@tonic-gate tss_edi TSS_EDI 1167c478bd9Sstevel@tonic-gate 1177c478bd9Sstevel@tonic-gate\#define LABEL_EBP _CONST(_MUL(2, LABEL_VAL_INCR) + LABEL_VAL) 1187c478bd9Sstevel@tonic-gate\#define LABEL_EBX _CONST(_MUL(3, LABEL_VAL_INCR) + LABEL_VAL) 1197c478bd9Sstevel@tonic-gate\#define LABEL_ESI _CONST(_MUL(4, LABEL_VAL_INCR) + LABEL_VAL) 1207c478bd9Sstevel@tonic-gate\#define LABEL_EDI _CONST(_MUL(5, LABEL_VAL_INCR) + LABEL_VAL) 1217c478bd9Sstevel@tonic-gate\#define T_EBP _CONST(T_LABEL + LABEL_EBP) 1227c478bd9Sstevel@tonic-gate\#define T_EBX _CONST(T_LABEL + LABEL_EBX) 1237c478bd9Sstevel@tonic-gate\#define T_ESI _CONST(T_LABEL + LABEL_ESI) 1247c478bd9Sstevel@tonic-gate\#define T_EDI _CONST(T_LABEL + LABEL_EDI) 1257c478bd9Sstevel@tonic-gate 1267c478bd9Sstevel@tonic-gate_klwp 1277c478bd9Sstevel@tonic-gate lwp_pcb.pcb_fsdesc LWP_PCB_FSDESC 1287c478bd9Sstevel@tonic-gate lwp_pcb.pcb_gsdesc LWP_PCB_GSDESC 1297c478bd9Sstevel@tonic-gate lwp_pcb.pcb_drstat LWP_PCB_DRSTAT 1307c478bd9Sstevel@tonic-gate lwp_pcb.pcb_flags PCB_FLAGS 1317c478bd9Sstevel@tonic-gate lwp_pcb.pcb_fpu LWP_PCB_FPU 1327c478bd9Sstevel@tonic-gate lwp_pcb.pcb_fpu.fpu_regs LWP_FPU_REGS 1337c478bd9Sstevel@tonic-gate lwp_pcb.pcb_fpu.fpu_flags LWP_FPU_FLAGS 1347c478bd9Sstevel@tonic-gate lwp_pcb.pcb_fpu.fpu_regs.kfpu_u.kfpu_fx LWP_FPU_CHIP_STATE 1357c478bd9Sstevel@tonic-gate 1367c478bd9Sstevel@tonic-gatepcb PCBSIZE 1377c478bd9Sstevel@tonic-gate pcb_drstat 1387c478bd9Sstevel@tonic-gate pcb_fsdesc 1397c478bd9Sstevel@tonic-gate pcb_gsdesc 1407c478bd9Sstevel@tonic-gate pcb_fpu.fpu_regs PCB_FPU_REGS 1417c478bd9Sstevel@tonic-gate pcb_fpu.fpu_flags PCB_FPU_FLAGS 142843e1988Sjohnlev 143843e1988Sjohnlev#if defined(__xpv) 144843e1988Sjohnlev 145843e1988Sjohnlevvcpu_info 146843e1988Sjohnlev evtchn_upcall_pending VCPU_INFO_EVTCHN_UPCALL_PENDING 147843e1988Sjohnlev evtchn_upcall_mask VCPU_INFO_EVTCHN_UPCALL_MASK 148843e1988Sjohnlev arch.cr2 VCPU_INFO_ARCH_CR2 149843e1988Sjohnlev 150843e1988Sjohnlev#endif /* __xpv */ 151