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