]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - cddl/contrib/opensolaris/lib/libdtrace/i386/regs.sed.in
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / cddl / contrib / opensolaris / lib / libdtrace / i386 / regs.sed.in
1 /*
2  * CDDL HEADER START
3  *
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
7  * with the License.
8  *
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.
13  *
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]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26
27 #pragma ident   "%Z%%M% %I%     %E% SMI"
28
29 /*
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
36  * information.
37  */
38
39 #include <sys/regset.h>
40
41 #define SED_REPLACE(x)          s/#x/x/g
42 #define SED_REPLACE64(x)        s/#x/SS @+@1@+@ x/g
43
44 SED_REPLACE(GS)
45 SED_REPLACE(FS)
46 SED_REPLACE(ES)
47 SED_REPLACE(DS)
48 SED_REPLACE(EDI)
49 SED_REPLACE(ESI)
50 SED_REPLACE(EBP)
51 SED_REPLACE(ESP)
52 SED_REPLACE(EBX)
53 SED_REPLACE(EDX)
54 SED_REPLACE(ECX)
55 SED_REPLACE(EAX)
56 SED_REPLACE(TRAPNO)
57 SED_REPLACE(ERR)
58 SED_REPLACE(EIP)
59 SED_REPLACE(CS)
60 SED_REPLACE(EFL)
61 SED_REPLACE(UESP)
62 SED_REPLACE(SS)
63
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)
74 SED_REPLACE64(REG_R8)
75 SED_REPLACE64(REG_R9)
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)
82