xref: /linux/arch/mips/include/asm/reg.h (revision 0d456bad36d42d16022be045c8a53ddbb59ee478)
1 /*
2  * Various register offset definitions for debuggers, core file
3  * examiners and whatnot.
4  *
5  * This file is subject to the terms and conditions of the GNU General Public
6  * License.  See the file "COPYING" in the main directory of this archive
7  * for more details.
8  *
9  * Copyright (C) 1995, 1999 Ralf Baechle
10  * Copyright (C) 1995, 1999 Silicon Graphics
11  */
12 #ifndef __ASM_MIPS_REG_H
13 #define __ASM_MIPS_REG_H
14 
15 
16 #if defined(CONFIG_32BIT) || defined(WANT_COMPAT_REG_H)
17 
18 #define EF_R0			6
19 #define EF_R1			7
20 #define EF_R2			8
21 #define EF_R3			9
22 #define EF_R4			10
23 #define EF_R5			11
24 #define EF_R6			12
25 #define EF_R7			13
26 #define EF_R8			14
27 #define EF_R9			15
28 #define EF_R10			16
29 #define EF_R11			17
30 #define EF_R12			18
31 #define EF_R13			19
32 #define EF_R14			20
33 #define EF_R15			21
34 #define EF_R16			22
35 #define EF_R17			23
36 #define EF_R18			24
37 #define EF_R19			25
38 #define EF_R20			26
39 #define EF_R21			27
40 #define EF_R22			28
41 #define EF_R23			29
42 #define EF_R24			30
43 #define EF_R25			31
44 
45 /*
46  * k0/k1 unsaved
47  */
48 #define EF_R26			32
49 #define EF_R27			33
50 
51 #define EF_R28			34
52 #define EF_R29			35
53 #define EF_R30			36
54 #define EF_R31			37
55 
56 /*
57  * Saved special registers
58  */
59 #define EF_LO			38
60 #define EF_HI			39
61 
62 #define EF_CP0_EPC		40
63 #define EF_CP0_BADVADDR		41
64 #define EF_CP0_STATUS		42
65 #define EF_CP0_CAUSE		43
66 #define EF_UNUSED0		44
67 
68 #define EF_SIZE			180
69 
70 #endif
71 
72 #if defined(CONFIG_64BIT) && !defined(WANT_COMPAT_REG_H)
73 
74 #define EF_R0			 0
75 #define EF_R1			 1
76 #define EF_R2			 2
77 #define EF_R3			 3
78 #define EF_R4			 4
79 #define EF_R5			 5
80 #define EF_R6			 6
81 #define EF_R7			 7
82 #define EF_R8			 8
83 #define EF_R9			 9
84 #define EF_R10			10
85 #define EF_R11			11
86 #define EF_R12			12
87 #define EF_R13			13
88 #define EF_R14			14
89 #define EF_R15			15
90 #define EF_R16			16
91 #define EF_R17			17
92 #define EF_R18			18
93 #define EF_R19			19
94 #define EF_R20			20
95 #define EF_R21			21
96 #define EF_R22			22
97 #define EF_R23			23
98 #define EF_R24			24
99 #define EF_R25			25
100 
101 /*
102  * k0/k1 unsaved
103  */
104 #define EF_R26			26
105 #define EF_R27			27
106 
107 
108 #define EF_R28			28
109 #define EF_R29			29
110 #define EF_R30			30
111 #define EF_R31			31
112 
113 /*
114  * Saved special registers
115  */
116 #define EF_LO			32
117 #define EF_HI			33
118 
119 #define EF_CP0_EPC		34
120 #define EF_CP0_BADVADDR		35
121 #define EF_CP0_STATUS		36
122 #define EF_CP0_CAUSE		37
123 
124 #define EF_SIZE			304	/* size in bytes */
125 
126 #endif /* CONFIG_64BIT */
127 
128 #endif /* __ASM_MIPS_REG_H */
129