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