]>
Commit | Line | Data |
---|---|---|
f7a9f785 | 1 | /* Copyright (C) 1997-2016 Free Software Foundation, Inc. |
e5300670 UD |
2 | This file is part of the GNU C Library. |
3 | Contributed by Ralf Baechle <ralf@gnu.org>. | |
4 | ||
5 | The GNU C Library is free software; you can redistribute it and/or | |
3214b89b AJ |
6 | modify it under the terms of the GNU Lesser General Public |
7 | License as published by the Free Software Foundation; either | |
8 | version 2.1 of the License, or (at your option) any later version. | |
e5300670 UD |
9 | |
10 | The GNU C Library is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
3214b89b | 13 | Lesser General Public License for more details. |
e5300670 | 14 | |
3214b89b | 15 | You should have received a copy of the GNU Lesser General Public |
ab84e3ff PE |
16 | License along with the GNU C Library. If not, see |
17 | <http://www.gnu.org/licenses/>. */ | |
e5300670 UD |
18 | |
19 | #ifndef _SYS_REGDEF_H | |
20 | #define _SYS_REGDEF_H | |
21 | ||
b8ddf7a1 AJ |
22 | #include <sgidefs.h> |
23 | ||
e5300670 UD |
24 | /* |
25 | * Symbolic register names for 32 bit ABI | |
26 | */ | |
27 | #define zero $0 /* wired zero */ | |
28 | #define AT $1 /* assembler temp - uppercase because of ".set at" */ | |
29 | #define v0 $2 /* return value */ | |
30 | #define v1 $3 | |
31 | #define a0 $4 /* argument registers */ | |
32 | #define a1 $5 | |
33 | #define a2 $6 | |
34 | #define a3 $7 | |
b8ddf7a1 | 35 | #if _MIPS_SIM != _ABIO32 |
96c095cf AO |
36 | #define a4 $8 |
37 | #define a5 $9 | |
38 | #define a6 $10 | |
39 | #define a7 $11 | |
40 | #define t0 $12 | |
41 | #define t1 $13 | |
42 | #define t2 $14 | |
43 | #define t3 $15 | |
44 | #define ta0 a4 | |
45 | #define ta1 a5 | |
46 | #define ta2 a6 | |
47 | #define ta3 a7 | |
b8ddf7a1 | 48 | #else /* if _MIPS_SIM == _ABIO32 */ |
e5300670 UD |
49 | #define t0 $8 /* caller saved */ |
50 | #define t1 $9 | |
51 | #define t2 $10 | |
52 | #define t3 $11 | |
53 | #define t4 $12 | |
54 | #define t5 $13 | |
55 | #define t6 $14 | |
56 | #define t7 $15 | |
96c095cf AO |
57 | #define ta0 t4 |
58 | #define ta1 t5 | |
59 | #define ta2 t6 | |
60 | #define ta3 t7 | |
b8ddf7a1 | 61 | #endif /* _MIPS_SIM == _ABIO32 */ |
e5300670 UD |
62 | #define s0 $16 /* callee saved */ |
63 | #define s1 $17 | |
64 | #define s2 $18 | |
65 | #define s3 $19 | |
66 | #define s4 $20 | |
67 | #define s5 $21 | |
68 | #define s6 $22 | |
69 | #define s7 $23 | |
70 | #define t8 $24 /* caller saved */ | |
71 | #define t9 $25 | |
72 | #define jp $25 /* PIC jump register */ | |
73 | #define k0 $26 /* kernel scratch */ | |
74 | #define k1 $27 | |
75 | #define gp $28 /* global pointer */ | |
76 | #define sp $29 /* stack pointer */ | |
77 | #define fp $30 /* frame pointer */ | |
78 | #define s8 $30 /* same like fp! */ | |
79 | #define ra $31 /* return address */ | |
80 | ||
81 | #endif /* _SYS_REGDEF_H */ |