blob: 35505b70f84b709c4149b00eebb4a8788c02a840 [file] [log] [blame]
wdenk6069ff22003-02-28 00:49:47 +00001/*
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 */
11#ifndef __ASM_MIPS_REG_H
12#define __ASM_MIPS_REG_H
13
14/*
15 * This defines/structures correspond to the register layout on stack -
16 * if the order here is changed, it needs to be updated in
17 * include/asm-mips/stackframe.h
18 */
19#define EF_REG0 6
20#define EF_REG1 7
21#define EF_REG2 8
22#define EF_REG3 9
23#define EF_REG4 10
24#define EF_REG5 11
25#define EF_REG6 12
26#define EF_REG7 13
27#define EF_REG8 14
28#define EF_REG9 15
29#define EF_REG10 16
30#define EF_REG11 17
31#define EF_REG12 18
32#define EF_REG13 19
33#define EF_REG14 20
34#define EF_REG15 21
35#define EF_REG16 22
36#define EF_REG17 23
37#define EF_REG18 24
38#define EF_REG19 25
39#define EF_REG20 26
40#define EF_REG21 27
41#define EF_REG22 28
42#define EF_REG23 29
43#define EF_REG24 30
44#define EF_REG25 31
45/*
46 * k0/k1 unsaved
47 */
48#define EF_REG28 34
49#define EF_REG29 35
50#define EF_REG30 36
51#define EF_REG31 37
52
53/*
54 * Saved special registers
55 */
56#define EF_LO 38
57#define EF_HI 39
58
59#define EF_CP0_EPC 40
60#define EF_CP0_BADVADDR 41
61#define EF_CP0_STATUS 42
62#define EF_CP0_CAUSE 44
63
64#define EF_SIZE 180 /* size in bytes */
65
66#endif /* __ASM_MIPS_REG_H */