]> granicus.if.org Git - strace/commitdiff
Mark architectures that indicate syscall error in a dedicated register
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sat, 10 Feb 2018 00:43:54 +0000 (01:43 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 10 Feb 2018 02:15:35 +0000 (02:15 +0000)
* linux/alpha/arch_defs_.h (HAVE_ARCH_DEDICATED_ERR_REG): New macro,
define to 1.
* linux/ia64/arch_defs_.h: Likewise.
* linux/mips/arch_defs_.h: Likewise.
* linux/powerpc/arch_defs_.h: Likewise.
* linux/powerpc64/arch_defs_.h: Likewise.
* linux/sparc64/arch_defs_.h: Likewise.
* linux/arch_defs_.h [!HAVE_ARCH_DEDICATED_ERR_REG]
(HAVE_ARCH_DEDICATED_ERR_REG): New macro, define to 0.
* linux/nios2/arch_defs_.h: New file.
* Makefile.am (EXTRA_DIST): Add it.

Makefile.am
linux/alpha/arch_defs_.h
linux/arch_defs_.h
linux/ia64/arch_defs_.h
linux/mips/arch_defs_.h
linux/nios2/arch_defs_.h [new file with mode: 0644]
linux/powerpc/arch_defs_.h
linux/powerpc64/arch_defs_.h
linux/sparc64/arch_defs_.h

index 5cf2c9bf1de91608982df1b679ee53693c29e89d..7fa3891e56f14a9e0c25ddea1fe7a3e8787636fd 100644 (file)
@@ -602,6 +602,7 @@ EXTRA_DIST =                                \
        linux/mips/syscallent.h         \
        linux/mips/userent.h            \
        linux/netlink_diag.h            \
+       linux/nios2/arch_defs_.h        \
        linux/nios2/arch_regs.c         \
        linux/nios2/arch_regs.h         \
        linux/nios2/arch_rt_sigframe.c  \
index 491f19c526e2422e83e83b69d0b183e229de6be8..f6fe59e5eb5397709483550fa9d429cac3891f08 100644 (file)
@@ -1 +1,2 @@
 #define HAVE_ARCH_GETRVAL2 1
+#define HAVE_ARCH_DEDICATED_ERR_REG 1
index e4cdf91b4c057b522da95e551a00ad2615e723d2..a66be2624a1c74b1dd03be7e0cc3e4493f521b44 100644 (file)
@@ -27,3 +27,7 @@
 #ifndef SUPPORTED_PERSONALITIES
 # define SUPPORTED_PERSONALITIES 1
 #endif
+
+#ifndef HAVE_ARCH_DEDICATED_ERR_REG
+# define HAVE_ARCH_DEDICATED_ERR_REG 0
+#endif
index a0479bd8993375fb467e01bdf2167413bbc8dc1c..8674172a6b1da8b930636327574960a08dc02eb4 100644 (file)
@@ -1,3 +1,4 @@
 #define HAVE_ARCH_GETRVAL2 1
 #define HAVE_ARCH_UID16_SYSCALLS 1
 #define HAVE_ARCH_SA_RESTORER 0
+#define HAVE_ARCH_DEDICATED_ERR_REG 1
index 491f19c526e2422e83e83b69d0b183e229de6be8..f6fe59e5eb5397709483550fa9d429cac3891f08 100644 (file)
@@ -1 +1,2 @@
 #define HAVE_ARCH_GETRVAL2 1
+#define HAVE_ARCH_DEDICATED_ERR_REG 1
diff --git a/linux/nios2/arch_defs_.h b/linux/nios2/arch_defs_.h
new file mode 100644 (file)
index 0000000..2bd4e4a
--- /dev/null
@@ -0,0 +1 @@
+#define HAVE_ARCH_DEDICATED_ERR_REG 1
index a72e6807abba3db53ee4064f9e99bb81d984987f..ef3f342e7e5ebdb85c5d0f56f386bd09ffe9537c 100644 (file)
@@ -1 +1,2 @@
 #define HAVE_ARCH_OLD_SELECT 1
+#define HAVE_ARCH_DEDICATED_ERR_REG 1
index 1b81d118f14a72e3d9a245f0c67ece65a2dc54aa..037b52f6ab8f9ee3b486ea949bb8a6b7db05cd72 100644 (file)
@@ -1,2 +1,3 @@
 #define HAVE_ARCH_OLD_SELECT 1
 #define SUPPORTED_PERSONALITIES 2
+#define HAVE_ARCH_DEDICATED_ERR_REG 1
index 800d67271b3b4b2fe8139cb5d62642c34e127606..31ce9a2a95f2c53d119c62cea1e6a2010b689de3 100644 (file)
@@ -2,3 +2,4 @@
 #define HAVE_ARCH_UID16_SYSCALLS 1
 #define HAVE_ARCH_SA_RESTORER 1
 #define SUPPORTED_PERSONALITIES 2
+#define HAVE_ARCH_DEDICATED_ERR_REG 1