1 /* Copyright (C) 1997, 1998, 2002, 2003, 2004 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Ralf Baechle <ralf@gnu.org>.
5 The GNU C Library is free software; you can redistribute it and/or
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.
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
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
26 * Symbolic register names for 32 bit ABI
28 #define zero $0 /* wired zero */
29 #define AT $1 /* assembler temp - uppercase because of ".set at" */
30 #define v0 $2 /* return value */
32 #define a0 $4 /* argument registers */
36 #if _MIPS_SIM != _ABIO32
49 #else /* if _MIPS_SIM == _ABIO32 */
50 #define t0 $8 /* caller saved */
62 #endif /* _MIPS_SIM == _ABIO32 */
63 #define s0 $16 /* callee saved */
71 #define t8 $24 /* caller saved */
73 #define jp $25 /* PIC jump register */
74 #define k0 $26 /* kernel scratch */
76 #define gp $28 /* global pointer */
77 #define sp $29 /* stack pointer */
78 #define fp $30 /* frame pointer */
79 #define s8 $30 /* same like fp! */
80 #define ra $31 /* return address */
82 #endif /* _SYS_REGDEF_H */