2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 1985 MIPS Computer Systems, Inc.
7 * Copyright (C) 1994, 95, 99, 2003 by Ralf Baechle
8 * Copyright (C) 1990 - 1992, 1999 Silicon Graphics, Inc.
9 * Copyright (C) 2011 Wind River Systems,
10 * written by Ralf Baechle <ralf@linux-mips.org>
15 #include <asm/sgidefs.h>
17 #if _MIPS_SIM == _MIPS_SIM_ABI32
20 * Symbolic register names for 32 bit ABI
22 #define zero $0 /* wired zero */
23 #define AT $1 /* assembler temp - uppercase because of ".set at" */
24 #define v0 $2 /* return value */
26 #define a0 $4 /* argument registers */
30 #define t0 $8 /* caller saved */
42 #define s0 $16 /* callee saved */
50 #define t8 $24 /* caller saved */
52 #define jp $25 /* PIC jump register */
53 #define k0 $26 /* kernel scratch */
55 #define gp $28 /* global pointer */
56 #define sp $29 /* stack pointer */
57 #define fp $30 /* frame pointer */
58 #define s8 $30 /* same like fp! */
59 #define ra $31 /* return address */
61 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
63 #if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
65 #define zero $0 /* wired zero */
66 #define AT $at /* assembler temp - uppercase because of ".set at" */
67 #define v0 $2 /* return value - caller saved */
69 #define a0 $4 /* argument registers */
73 #define a4 $8 /* arg reg 64 bit; caller saved in 32 bit */
81 #define t0 $12 /* caller saved */
85 #define s0 $16 /* callee saved */
93 #define t8 $24 /* caller saved */
94 #define t9 $25 /* callee address for PIC/temp */
95 #define jp $25 /* PIC jump register */
96 #define k0 $26 /* kernel temporary */
98 #define gp $28 /* global pointer - caller saved for PIC */
99 #define sp $29 /* stack pointer */
100 #define fp $30 /* frame pointer */
101 #define s8 $30 /* callee saved */
102 #define ra $31 /* return address */
104 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */
106 #endif /* _ASM_REGDEF_H */