First Support on Ginger and OMAP TI
[linux-ginger.git] / arch / mips / include / asm / reg.h
blob910e71a12466de2f1fb3f1fab82c6203ef062e63
1 /*
2 * Various register offset definitions for debuggers, core file
3 * examiners and whatnot.
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.
9 * Copyright (C) 1995, 1999 Ralf Baechle
10 * Copyright (C) 1995, 1999 Silicon Graphics
12 #ifndef __ASM_MIPS_REG_H
13 #define __ASM_MIPS_REG_H
16 #if defined(CONFIG_32BIT) || defined(WANT_COMPAT_REG_H)
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
46 * k0/k1 unsaved
48 #define EF_R26 32
49 #define EF_R27 33
51 #define EF_R28 34
52 #define EF_R29 35
53 #define EF_R30 36
54 #define EF_R31 37
57 * Saved special registers
59 #define EF_LO 38
60 #define EF_HI 39
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
68 #define EF_SIZE 180
70 #endif
72 #if defined(CONFIG_64BIT) && !defined(WANT_COMPAT_REG_H)
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
102 * k0/k1 unsaved
104 #define EF_R26 26
105 #define EF_R27 27
108 #define EF_R28 28
109 #define EF_R29 29
110 #define EF_R30 30
111 #define EF_R31 31
114 * Saved special registers
116 #define EF_LO 32
117 #define EF_HI 33
119 #define EF_CP0_EPC 34
120 #define EF_CP0_BADVADDR 35
121 #define EF_CP0_STATUS 36
122 #define EF_CP0_CAUSE 37
124 #define EF_SIZE 304 /* size in bytes */
126 #endif /* CONFIG_64BIT */
128 #endif /* __ASM_MIPS_REG_H */