1 diff -urN kexec-tools-testing-20080324/kexec/arch/mips/regdef.h kexec-tools-testing-20080324.new/kexec/arch/mips/regdef.h
2 --- kexec-tools-testing-20080324/kexec/arch/mips/regdef.h 1970-01-01 01:00:00.000000000 +0100
3 +++ kexec-tools-testing-20080324.new/kexec/arch/mips/regdef.h 2008-07-18 13:37:18.000000000 +0200
6 + * This file is subject to the terms and conditions of the GNU General Public
7 + * License. See the file "COPYING" in the main directory of this archive
10 + * Copyright (C) 1985 MIPS Computer Systems, Inc.
11 + * Copyright (C) 1994, 95, 99, 2003 by Ralf Baechle
12 + * Copyright (C) 1990 - 1992, 1999 Silicon Graphics, Inc.
14 +#ifndef _ASM_REGDEF_H
15 +#define _ASM_REGDEF_H
17 +#include <asm/sgidefs.h>
19 +#if _MIPS_SIM == _MIPS_SIM_ABI32
22 + * Symbolic register names for 32 bit ABI
24 +#define zero $0 /* wired zero */
25 +#define AT $1 /* assembler temp - uppercase because of ".set at" */
26 +#define v0 $2 /* return value */
28 +#define a0 $4 /* argument registers */
32 +#define t0 $8 /* caller saved */
40 +#define s0 $16 /* callee saved */
48 +#define t8 $24 /* caller saved */
50 +#define jp $25 /* PIC jump register */
51 +#define k0 $26 /* kernel scratch */
53 +#define gp $28 /* global pointer */
54 +#define sp $29 /* stack pointer */
55 +#define fp $30 /* frame pointer */
56 +#define s8 $30 /* same like fp! */
57 +#define ra $31 /* return address */
59 +#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
61 +#if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
63 +#define zero $0 /* wired zero */
64 +#define AT $at /* assembler temp - uppercase because of ".set at" */
65 +#define v0 $2 /* return value - caller saved */
67 +#define a0 $4 /* argument registers */
71 +#define a4 $8 /* arg reg 64 bit; caller saved in 32 bit */
79 +#define t0 $12 /* caller saved */
83 +#define s0 $16 /* callee saved */
91 +#define t8 $24 /* caller saved */
92 +#define t9 $25 /* callee address for PIC/temp */
93 +#define jp $25 /* PIC jump register */
94 +#define k0 $26 /* kernel temporary */
96 +#define gp $28 /* global pointer - caller saved for PIC */
97 +#define sp $29 /* stack pointer */
98 +#define fp $30 /* frame pointer */
99 +#define s8 $30 /* callee saved */
100 +#define ra $31 /* return address */
102 +#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */
104 +#endif /* _ASM_REGDEF_H */