4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #pragma ident "%Z%%M% %I% %E% SMI"
30 * This file is a sed script which is first preprocessed by cpp or cc -E to
31 * define a set of sed directives which replace #define tokens with their
32 * values. After preprocessing, whitespace is eliminated, and any @ symbols
33 * are translated into single space. The resulting sed script is then run
34 * over regs.d.in to replace the #define tokens listed below to create the
35 * finished regs.d. Refer to the rules in libdtrace/i386/Makefile for more
39 #include <sys/regset.h>
41 #define SED_REPLACE(x) s/#x/x/g
42 #define SED_REPLACE64(x) s/#x/SS @+@1@+@ x/g
64 SED_REPLACE64(REG_RSP)
65 SED_REPLACE64(REG_RFL)
66 SED_REPLACE64(REG_RIP)
67 SED_REPLACE64(REG_RAX)
68 SED_REPLACE64(REG_RCX)
69 SED_REPLACE64(REG_RDX)
70 SED_REPLACE64(REG_RBX)
71 SED_REPLACE64(REG_RBP)
72 SED_REPLACE64(REG_RSI)
73 SED_REPLACE64(REG_RDI)
76 SED_REPLACE64(REG_R10)
77 SED_REPLACE64(REG_R11)
78 SED_REPLACE64(REG_R12)
79 SED_REPLACE64(REG_R13)
80 SED_REPLACE64(REG_R14)
81 SED_REPLACE64(REG_R15)