blob: 691d047b676623058a5b917d6363114afb91d85c [file] [log] [blame]
wdenk4fc95692003-02-28 00:49:47 +00001/*
2 * include/asm-mips/regdefs.h
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 *
8 * Copyright (C) 1994, 1995 by Ralf Baechle
9 */
10
11#ifndef __ASM_MIPS_REGDEF_H
12#define __ASM_MIPS_REGDEF_H
13
14/*
15 * Symbolic register names for 32 bit ABI
16 */
17#define zero $0 /* wired zero */
18#define AT $1 /* assembler temp - uppercase because of ".set at" */
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
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 /* caller saved */
42#define t9 $25
43#define jp $25 /* PIC jump register */
44#define k0 $26 /* kernel scratch */
45#define k1 $27
46#define gp $28 /* global pointer */
47#define sp $29 /* stack pointer */
48#define fp $30 /* frame pointer */
49#define s8 $30 /* same like fp! */
50#define ra $31 /* return address */
51
52#endif /* __ASM_MIPS_REGDEF_H */