1 /*-
2 * Copyright (c) 2001, Juniper Networks, Inc.
3 * All rights reserved.
4 * Truman Joe, February 2001.
5 *
6 * regdef.h -- MIPS register definitions.
7 *
8 * JNPR: regdef.h,v 1.3 2006/08/07 05:38:57 katta
9 * $FreeBSD: releng/8.0/sys/mips/include/regdef.h 178172 2008-04-13 07:27:37Z imp $
10 */
11
12 #ifndef _MACHINE_REGDEF_H_
13 #define _MACHINE_REGDEF_H_
14
15 #if defined(__ASSEMBLER__)
16 /* General purpose CPU register names */
17 #define zero $0 /* wired zero */
18 #define AT $at /* assembler temp */
19 #define v0 $2 /* return value */
20 #define v1 $3
21 #define a0 $4 /* argument registers */
22 #define a1 $5
23 #define a2 $6
24 #define a3 $7
25 #define t0 $8 /* caller saved */
26 #define t1 $9
27 #define t2 $10
28 #define t3 $11
29 #define t4 $12 /* caller saved - 32 bit env arg reg 64 bit */
30 #define t5 $13
31 #define t6 $14
32 #define t7 $15
33 #define s0 $16 /* callee saved */
34 #define s1 $17
35 #define s2 $18
36 #define s3 $19
37 #define s4 $20
38 #define s5 $21
39 #define s6 $22
40 #define s7 $23
41 #define t8 $24 /* code generator */
42 #define t9 $25
43 #define k0 $26 /* kernel temporary */
44 #define k1 $27
45 #define gp $28 /* global pointer */
46 #define sp $29 /* stack pointer */
47 #define fp $30 /* frame pointer */
48 #define s8 $30 /* callee saved */
49 #define ra $31 /* return address */
50
51 #endif /* __ASSEMBLER__ */
52
53 #endif /* !_MACHINE_REGDEF_H_ */
Cache object: ecce1df811afb7bbb14aba1499cf465d
|