diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2011-09-28 22:38:53 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-10-24 18:34:27 -0400 |
commit | 3ba1e543ab4b02640d396098f2f6a199560d5f2d (patch) | |
tree | c9391dc4f5e8d70541c79caf6bfb897e02816f05 | |
parent | 939991cff173f769efb8c56286d4e59fb9ced191 (diff) |
MIPS: O32: Provide definition of registers ta0 .. ta3.
Later IRIX versions provide them in <sys/regdef.h> and gas also accepts
$ta0 .. $ta3 since binutils 2.18 so Linux should do the same for source
compatibility.
-rw-r--r-- | arch/mips/include/asm/regdef.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/include/asm/regdef.h b/arch/mips/include/asm/regdef.h index 7c8ecb6b9c4..785a5189b37 100644 --- a/arch/mips/include/asm/regdef.h +++ b/arch/mips/include/asm/regdef.h | |||
@@ -6,6 +6,8 @@ | |||
6 | * Copyright (C) 1985 MIPS Computer Systems, Inc. | 6 | * Copyright (C) 1985 MIPS Computer Systems, Inc. |
7 | * Copyright (C) 1994, 95, 99, 2003 by Ralf Baechle | 7 | * Copyright (C) 1994, 95, 99, 2003 by Ralf Baechle |
8 | * Copyright (C) 1990 - 1992, 1999 Silicon Graphics, Inc. | 8 | * Copyright (C) 1990 - 1992, 1999 Silicon Graphics, Inc. |
9 | * Copyright (C) 2011 Wind River Systems, | ||
10 | * written by Ralf Baechle <ralf@linux-mips.org> | ||
9 | */ | 11 | */ |
10 | #ifndef _ASM_REGDEF_H | 12 | #ifndef _ASM_REGDEF_H |
11 | #define _ASM_REGDEF_H | 13 | #define _ASM_REGDEF_H |
@@ -30,9 +32,13 @@ | |||
30 | #define t2 $10 | 32 | #define t2 $10 |
31 | #define t3 $11 | 33 | #define t3 $11 |
32 | #define t4 $12 | 34 | #define t4 $12 |
35 | #define ta0 $12 | ||
33 | #define t5 $13 | 36 | #define t5 $13 |
37 | #define ta1 $13 | ||
34 | #define t6 $14 | 38 | #define t6 $14 |
39 | #define ta2 $14 | ||
35 | #define t7 $15 | 40 | #define t7 $15 |
41 | #define ta3 $15 | ||
36 | #define s0 $16 /* callee saved */ | 42 | #define s0 $16 /* callee saved */ |
37 | #define s1 $17 | 43 | #define s1 $17 |
38 | #define s2 $18 | 44 | #define s2 $18 |