1
2
3
4
5
6
7
8
9
10
11
12 #ifndef _ASM_REGDEF_H
13 #define _ASM_REGDEF_H
14
15 #include <asm/sgidefs.h>
16
17 #if _MIPS_SIM == _MIPS_SIM_ABI32
18
19
20
21
22 #define zero $0
23 #define AT $1
24 #define v0 $2
25 #define v1 $3
26 #define a0 $4
27 #define a1 $5
28 #define a2 $6
29 #define a3 $7
30 #define t0 $8
31 #define t1 $9
32 #define t2 $10
33 #define t3 $11
34 #define t4 $12
35 #define ta0 $12
36 #define t5 $13
37 #define ta1 $13
38 #define t6 $14
39 #define ta2 $14
40 #define t7 $15
41 #define ta3 $15
42 #define s0 $16
43 #define s1 $17
44 #define s2 $18
45 #define s3 $19
46 #define s4 $20
47 #define s5 $21
48 #define s6 $22
49 #define s7 $23
50 #define t8 $24
51 #define t9 $25
52 #define jp $25
53 #define k0 $26
54 #define k1 $27
55 #define gp $28
56 #define sp $29
57 #define fp $30
58 #define s8 $30
59 #define ra $31
60
61 #endif
62
63 #if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
64
65 #define zero $0
66 #define AT $at
67 #define v0 $2
68 #define v1 $3
69 #define a0 $4
70 #define a1 $5
71 #define a2 $6
72 #define a3 $7
73 #define a4 $8
74 #define ta0 $8
75 #define a5 $9
76 #define ta1 $9
77 #define a6 $10
78 #define ta2 $10
79 #define a7 $11
80 #define ta3 $11
81 #define t0 $12
82 #define t1 $13
83 #define t2 $14
84 #define t3 $15
85 #define s0 $16
86 #define s1 $17
87 #define s2 $18
88 #define s3 $19
89 #define s4 $20
90 #define s5 $21
91 #define s6 $22
92 #define s7 $23
93 #define t8 $24
94 #define t9 $25
95 #define jp $25
96 #define k0 $26
97 #define k1 $27
98 #define gp $28
99 #define sp $29
100 #define fp $30
101 #define s8 $30
102 #define ra $31
103
104 #endif
105
106 #endif