2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License, Version 1.0 only
2N/A * (the "License"). You may not use this file except in compliance
2N/A * with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A/*
2N/A * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
2N/A * Use is subject to license terms.
2N/A */
2N/A
2N/A#pragma ident "%Z%%M% %I% %E% SMI"
2N/A
2N/A/*
2N/A * This file is a sed script which is first preprocessed by cpp or cc -E to
2N/A * define a set of sed directives which replace #define tokens with their
2N/A * values. After preprocessing, whitespace is eliminated, and any @ symbols
2N/A * are translated into single space. The resulting sed script is then run
2N/A * over regs.d.in to replace the #define tokens listed below to create the
2N/A * finished regs.d. Refer to the rules in libdtrace/i386/Makefile for more
2N/A * information.
2N/A */
2N/A
2N/A#include <sys/regset.h>
2N/A
2N/A#define SED_REPLACE(x) s/#x/x/g
2N/A#define SED_REPLACE64(x) s/#x/SS @+@1@+@ x/g
2N/A
2N/ASED_REPLACE(GS)
2N/ASED_REPLACE(FS)
2N/ASED_REPLACE(ES)
2N/ASED_REPLACE(DS)
2N/ASED_REPLACE(EDI)
2N/ASED_REPLACE(ESI)
2N/ASED_REPLACE(EBP)
2N/ASED_REPLACE(ESP)
2N/ASED_REPLACE(EBX)
2N/ASED_REPLACE(EDX)
2N/ASED_REPLACE(ECX)
2N/ASED_REPLACE(EAX)
2N/ASED_REPLACE(TRAPNO)
2N/ASED_REPLACE(ERR)
2N/ASED_REPLACE(EIP)
2N/ASED_REPLACE(CS)
2N/ASED_REPLACE(EFL)
2N/ASED_REPLACE(UESP)
2N/ASED_REPLACE(SS)
2N/A
2N/ASED_REPLACE64(REG_RSP)
2N/ASED_REPLACE64(REG_RFL)
2N/ASED_REPLACE64(REG_RIP)
2N/ASED_REPLACE64(REG_RAX)
2N/ASED_REPLACE64(REG_RCX)
2N/ASED_REPLACE64(REG_RDX)
2N/ASED_REPLACE64(REG_RBX)
2N/ASED_REPLACE64(REG_RBP)
2N/ASED_REPLACE64(REG_RSI)
2N/ASED_REPLACE64(REG_RDI)
2N/ASED_REPLACE64(REG_R8)
2N/ASED_REPLACE64(REG_R9)
2N/ASED_REPLACE64(REG_R10)
2N/ASED_REPLACE64(REG_R11)
2N/ASED_REPLACE64(REG_R12)
2N/ASED_REPLACE64(REG_R13)
2N/ASED_REPLACE64(REG_R14)
2N/ASED_REPLACE64(REG_R15)
2N/A