summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorDenis Orlov <denorl2009@gmail.com>2023-06-05 23:10:35 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2023-06-09 08:43:23 +0200
commitc70a1ed66a83f25fce0144d7b58c3a2d87f10f39 (patch)
treeac35c9b74a6647923e61e4b61f4223ea84928553 /arch/mips
parentaa2e58df034ece049f714450ab9106a8a72bf429 (diff)
downloadbarebox-c70a1ed66a83f25fce0144d7b58c3a2d87f10f39.tar.gz
barebox-c70a1ed66a83f25fce0144d7b58c3a2d87f10f39.tar.xz
MIPS: o32: provide ta0..ta3 register definitions
This allows to write generic assembly code that will compile under both o32 and n64 ABIs, as otherwise the register definitions would conflict. Taken from Linux kernel sources, commit 'MIPS: O32: Provide definition of registers ta0 .. ta3.' (3ba1e543ab4b02640d396098f2f6a199560d5f2d). Signed-off-by: Denis Orlov <denorl2009@gmail.com> Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230605202634.42175-5-denorl2009@gmail.com Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/include/asm/regdef.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/include/asm/regdef.h b/arch/mips/include/asm/regdef.h
index 1300251661..df87582e8e 100644
--- a/arch/mips/include/asm/regdef.h
+++ b/arch/mips/include/asm/regdef.h
@@ -3,6 +3,8 @@
* Copyright (C) 1985 MIPS Computer Systems, Inc.
* Copyright (C) 1994, 95, 99, 2003 by Ralf Baechle
* Copyright (C) 1990 - 1992, 1999 Silicon Graphics, Inc.
+ * Copyright (C) 2011 Wind River Systems,
+ * written by Ralf Baechle <ralf@linux-mips.org>
*/
#ifndef _ASM_REGDEF_H
#define _ASM_REGDEF_H
@@ -27,9 +29,13 @@
#define t2 $10
#define t3 $11
#define t4 $12
+#define ta0 $12
#define t5 $13
+#define ta1 $13
#define t6 $14
+#define ta2 $14
#define t7 $15
+#define ta3 $15
#define s0 $16 /* callee saved */
#define s1 $17
#define s2 $18