]>
git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - include/asm-mips/regdef.h
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.
13 #include <asm/sgidefs.h>
15 #if _MIPS_SIM == _MIPS_SIM_ABI32
18 * Symbolic register names for 32 bit ABI
20 #define zero $0 /* wired zero */
21 #define AT $1 /* assembler temp - uppercase because of ".set at" */
22 #define v0 $2 /* return value */
24 #define a0 $4 /* argument registers */
28 #define t0 $8 /* caller saved */
36 #define s0 $16 /* callee saved */
44 #define t8 $24 /* caller saved */
46 #define jp $25 /* PIC jump register */
47 #define k0 $26 /* kernel scratch */
49 #define gp $28 /* global pointer */
50 #define sp $29 /* stack pointer */
51 #define fp $30 /* frame pointer */
52 #define s8 $30 /* same like fp! */
53 #define ra $31 /* return address */
55 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
57 #if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
59 #define zero $0 /* wired zero */
60 #define AT $at /* assembler temp - uppercase because of ".set at" */
61 #define v0 $2 /* return value - caller saved */
63 #define a0 $4 /* argument registers */
67 #define a4 $8 /* arg reg 64 bit; caller saved in 32 bit */
75 #define t0 $12 /* caller saved */
79 #define s0 $16 /* callee saved */
87 #define t8 $24 /* caller saved */
88 #define t9 $25 /* callee address for PIC/temp */
89 #define jp $25 /* PIC jump register */
90 #define k0 $26 /* kernel temporary */
92 #define gp $28 /* global pointer - caller saved for PIC */
93 #define sp $29 /* stack pointer */
94 #define fp $30 /* frame pointer */
95 #define s8 $30 /* callee saved */
96 #define ra $31 /* return address */
98 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */
100 #endif /* _ASM_REGDEF_H */