]> sourceware.org Git - glibc.git/blame - sysdeps/mips/sys/regdef.h
Amend log entry with omitted file.
[glibc.git] / sysdeps / mips / sys / regdef.h
CommitLineData
a334319f
UD
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>.
4
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.
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
13 Lesser General Public License for more details.
14
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
18 02111-1307 USA. */
19
20#ifndef _SYS_REGDEF_H
21#define _SYS_REGDEF_H
22
23#include <sgidefs.h>
24
25/*
26 * Symbolic register names for 32 bit ABI
27 */
28#define zero $0 /* wired zero */
29#define AT $1 /* assembler temp - uppercase because of ".set at" */
30#define v0 $2 /* return value */
31#define v1 $3
32#define a0 $4 /* argument registers */
33#define a1 $5
34#define a2 $6
35#define a3 $7
36#if _MIPS_SIM != _ABIO32
37#define a4 $8
38#define a5 $9
39#define a6 $10
40#define a7 $11
41#define t0 $12
42#define t1 $13
43#define t2 $14
44#define t3 $15
45#define ta0 a4
46#define ta1 a5
47#define ta2 a6
48#define ta3 a7
49#else /* if _MIPS_SIM == _ABIO32 */
50#define t0 $8 /* caller saved */
51#define t1 $9
52#define t2 $10
53#define t3 $11
54#define t4 $12
55#define t5 $13
56#define t6 $14
57#define t7 $15
58#define ta0 t4
59#define ta1 t5
60#define ta2 t6
61#define ta3 t7
62#endif /* _MIPS_SIM == _ABIO32 */
63#define s0 $16 /* callee saved */
64#define s1 $17
65#define s2 $18
66#define s3 $19
67#define s4 $20
68#define s5 $21
69#define s6 $22
70#define s7 $23
71#define t8 $24 /* caller saved */
72#define t9 $25
73#define jp $25 /* PIC jump register */
74#define k0 $26 /* kernel scratch */
75#define k1 $27
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 */
81
82#endif /* _SYS_REGDEF_H */
This page took 0.175625 seconds and 5 git commands to generate.