From: Thomas Weißschuh Date: Wed, 17 May 2023 15:00:31 +0000 (+0200) Subject: enosys: add support for MIPS, PowerPC and ARC X-Git-Tag: v2.40-rc1~448^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c9d03e0643ae5881f6f788f22af2a5f5d5fc207;p=thirdparty%2Futil-linux.git enosys: add support for MIPS, PowerPC and ARC Co-developed-by: Hauke Mertens Signed-off-by: Thomas Weißschuh --- diff --git a/misc-utils/enosys.c b/misc-utils/enosys.c index b51fe36872..1d5fdadf55 100644 --- a/misc-utils/enosys.c +++ b/misc-utils/enosys.c @@ -56,6 +56,20 @@ # else # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PPC64LE # endif +#elif __powerpc__ +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PPC +#elif __mips__ +# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_MIPS +# else +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_MIPSEL +# endif +#elif __arc__ +# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARCV2BE +# else +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARCV2 +# endif #else # error Unknown target architecture #endif