From: Eugene Syromyatnikov Date: Sat, 10 Feb 2018 00:43:54 +0000 (+0100) Subject: Mark architectures that indicate syscall error in a dedicated register X-Git-Tag: v4.21~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b06199a8b9a9c543cc68838ca81730ab180ccc50;p=strace Mark architectures that indicate syscall error in a dedicated register * 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. --- diff --git a/Makefile.am b/Makefile.am index 5cf2c9bf..7fa3891e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/linux/alpha/arch_defs_.h b/linux/alpha/arch_defs_.h index 491f19c5..f6fe59e5 100644 --- a/linux/alpha/arch_defs_.h +++ b/linux/alpha/arch_defs_.h @@ -1 +1,2 @@ #define HAVE_ARCH_GETRVAL2 1 +#define HAVE_ARCH_DEDICATED_ERR_REG 1 diff --git a/linux/arch_defs_.h b/linux/arch_defs_.h index e4cdf91b..a66be262 100644 --- a/linux/arch_defs_.h +++ b/linux/arch_defs_.h @@ -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 diff --git a/linux/ia64/arch_defs_.h b/linux/ia64/arch_defs_.h index a0479bd8..8674172a 100644 --- a/linux/ia64/arch_defs_.h +++ b/linux/ia64/arch_defs_.h @@ -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 diff --git a/linux/mips/arch_defs_.h b/linux/mips/arch_defs_.h index 491f19c5..f6fe59e5 100644 --- a/linux/mips/arch_defs_.h +++ b/linux/mips/arch_defs_.h @@ -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 index 00000000..2bd4e4a2 --- /dev/null +++ b/linux/nios2/arch_defs_.h @@ -0,0 +1 @@ +#define HAVE_ARCH_DEDICATED_ERR_REG 1 diff --git a/linux/powerpc/arch_defs_.h b/linux/powerpc/arch_defs_.h index a72e6807..ef3f342e 100644 --- a/linux/powerpc/arch_defs_.h +++ b/linux/powerpc/arch_defs_.h @@ -1 +1,2 @@ #define HAVE_ARCH_OLD_SELECT 1 +#define HAVE_ARCH_DEDICATED_ERR_REG 1 diff --git a/linux/powerpc64/arch_defs_.h b/linux/powerpc64/arch_defs_.h index 1b81d118..037b52f6 100644 --- a/linux/powerpc64/arch_defs_.h +++ b/linux/powerpc64/arch_defs_.h @@ -1,2 +1,3 @@ #define HAVE_ARCH_OLD_SELECT 1 #define SUPPORTED_PERSONALITIES 2 +#define HAVE_ARCH_DEDICATED_ERR_REG 1 diff --git a/linux/sparc64/arch_defs_.h b/linux/sparc64/arch_defs_.h index 800d6727..31ce9a2a 100644 --- a/linux/sparc64/arch_defs_.h +++ b/linux/sparc64/arch_defs_.h @@ -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