xref: /freebsd/sys/cddl/dev/dtrace/riscv/regset.h (revision 02e9120893770924227138ba49df1edb3896112a)
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 /*
24  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
25  * Use is subject to license terms.
26  */
27 
28 /*	Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
29 
30 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T		*/
31 /*	All Rights Reserved	*/
32 
33 #ifndef	_REGSET_H
34 #define	_REGSET_H
35 
36 /*
37  */
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
43 #define REG_ZERO	0
44 #define REG_RA		1
45 #define REG_SP		2
46 #define REG_GP		3
47 #define REG_TP		4
48 #define REG_T0		5
49 #define REG_T1		6
50 #define REG_T2		7
51 #define REG_S0		8
52 #define REG_FP		8
53 #define REG_S1		9
54 #define REG_A0		10
55 #define REG_A1		11
56 #define REG_A2		12
57 #define REG_A3		13
58 #define REG_A4		14
59 #define REG_A5		15
60 #define REG_A6		16
61 #define REG_A7		17
62 #define REG_S2		18
63 #define REG_S3		19
64 #define REG_S4		20
65 #define REG_S5		21
66 #define REG_S6		22
67 #define REG_S7		23
68 #define REG_S8		24
69 #define REG_S9		25
70 #define REG_S10		26
71 #define REG_S11		27
72 #define REG_T3		28
73 #define REG_T4		29
74 #define REG_T5		30
75 #define REG_T6		31
76 #define REG_PC		32
77 
78 #ifdef	__cplusplus
79 }
80 #endif
81 
82 #endif	/* _REGSET_H */
83