1\ 2\ Copyright 2005 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, Version 1.0 only 9\ (the "License"). You may not use this file except in compliance 10\ with the License. 11\ 12\ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13\ or http://www.opensolaris.org/os/licensing. 14\ See the License for the specific language governing permissions 15\ and limitations under the License. 16\ 17\ When distributing Covered Code, include this CDDL HEADER in each 18\ file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19\ If applicable, add the following below this CDDL HEADER, with the 20\ fields enclosed by brackets "[]" replaced with your own identifying 21\ information: Portions Copyright [yyyy] [name of copyright owner] 22\ 23\ CDDL HEADER END 24\ 25 26#pragma ident "%Z%%M% %I% %E% SMI" 27 28\ 29\ offsets.in: input file to produce assym.h using the ctfstabs program 30\ 31 32#ifndef _GENASSYM 33#define _GENASSYM 34#endif 35 36#define SIZES 1 37 38#include <sys/types.h> 39#include <sys/bootsvcs.h> 40#include <sys/systm.h> 41#include <sys/sysinfo.h> 42#include <sys/user.h> 43#include <sys/thread.h> 44#include <sys/proc.h> 45#include <sys/cpuvar.h> 46#include <sys/tss.h> 47#include <sys/privregs.h> 48#include <sys/segments.h> 49#include <sys/devops.h> 50#include <sys/ddi_impldefs.h> 51#include <vm/as.h> 52#include <sys/avintr.h> 53#include <sys/pic.h> 54#include <sys/rm_platter.h> 55#include <sys/stream.h> 56#include <sys/strsubr.h> 57#include <sys/sunddi.h> 58#include <sys/traptrace.h> 59#include <sys/ontrap.h> 60#include <sys/lgrp.h> 61#include <sys/dtrace.h> 62 63regs REGSIZE 64 r_savfp REGOFF_SAVFP 65 r_savpc REGOFF_SAVPC 66 r_rdi REGOFF_RDI 67 r_rsi REGOFF_RSI 68 r_rdx REGOFF_RDX 69 r_rcx REGOFF_RCX 70 r_r8 REGOFF_R8 71 r_r9 REGOFF_R9 72 r_rax REGOFF_RAX 73 r_rbx REGOFF_RBX 74 r_rbp REGOFF_RBP 75 r_r10 REGOFF_R10 76 r_r11 REGOFF_R11 77 r_r12 REGOFF_R12 78 r_r13 REGOFF_R13 79 r_r14 REGOFF_R14 80 r_r15 REGOFF_R15 81 r_fsbase REGOFF_FSBASE 82 r_gsbase REGOFF_GSBASE 83 r_ds REGOFF_DS 84 r_es REGOFF_ES 85 r_fs REGOFF_FS 86 r_gs REGOFF_GS 87 r_trapno REGOFF_TRAPNO 88 r_err REGOFF_ERR 89 r_rip REGOFF_RIP 90 r_cs REGOFF_CS 91 r_rfl REGOFF_RFL 92 r_rsp REGOFF_RSP 93 r_ss REGOFF_SS 94 95\#define REGOFF_PC REGOFF_RIP 96 97boot_syscalls 98 bsvc_putchar BOOTSVCS_PUTCHAR 99 100tss 101 tss_rsp0 102 tss_rsp1 103 tss_rsp2 104 tss_ist1 105 tss_ist2 106 tss_ist3 107 tss_ist4 108 tss_ist5 109 tss_ist6 110 tss_ist7 111 112\#define LABEL_RBP _CONST(_MUL(2, LABEL_VAL_INCR) + LABEL_VAL) 113\#define LABEL_RBX _CONST(_MUL(3, LABEL_VAL_INCR) + LABEL_VAL) 114\#define LABEL_R12 _CONST(_MUL(4, LABEL_VAL_INCR) + LABEL_VAL) 115\#define LABEL_R13 _CONST(_MUL(5, LABEL_VAL_INCR) + LABEL_VAL) 116\#define LABEL_R14 _CONST(_MUL(6, LABEL_VAL_INCR) + LABEL_VAL) 117\#define LABEL_R15 _CONST(_MUL(7, LABEL_VAL_INCR) + LABEL_VAL) 118\#define T_RBP _CONST(T_LABEL + LABEL_RBP) 119\#define T_RBX _CONST(T_LABEL + LABEL_RBX) 120\#define T_R12 _CONST(T_LABEL + LABEL_R12) 121\#define T_R13 _CONST(T_LABEL + LABEL_R13) 122\#define T_R14 _CONST(T_LABEL + LABEL_R14) 123\#define T_R15 _CONST(T_LABEL + LABEL_R15) 124 125_klwp 126 lwp_pcb.pcb_fpu LWP_PCB_FPU 127 lwp_pcb.pcb_fsbase LWP_PCB_FSBASE 128 lwp_pcb.pcb_gsbase LWP_PCB_GSBASE 129 lwp_pcb.pcb_ds LWP_PCB_DS 130 lwp_pcb.pcb_es LWP_PCB_ES 131 lwp_pcb.pcb_fs LWP_PCB_FS 132 lwp_pcb.pcb_gs LWP_PCB_GS 133 lwp_pcb.pcb_drstat LWP_PCB_DRSTAT 134 lwp_pcb.pcb_flags PCB_FLAGS 135 lwp_pcb.pcb_fpu.fpu_regs LWP_FPU_REGS 136 lwp_pcb.pcb_fpu.fpu_flags LWP_FPU_FLAGS 137 138pcb PCBSIZE 139 pcb_drstat 140 pcb_fsbase 141 pcb_gsbase 142 pcb_ds 143 pcb_es 144 pcb_fs 145 pcb_gs 146 pcb_fpu.fpu_regs PCB_FPU_REGS 147 pcb_fpu.fpu_flags PCB_FPU_FLAGS 148 149cpu 150 cpu_m.mcpu_rtmp_rsp CPU_RTMP_RSP 151 cpu_m.mcpu_rtmp_r15 CPU_RTMP_R15 152 153rm_platter 154 rm_temp_gdt_lim TEMPGDTOFF 155 rm_temp_idt_lim TEMPIDTOFF 156 rm_longmode64_addr LM64OFF 157