From 6966ec77b195ac289ae168c7c5646d59a307f33f Mon Sep 17 00:00:00 2001 From: Xiaotian Wu Date: Tue, 9 Feb 2021 15:39:13 +0800 Subject: arch: Add 64-bit LoongArch support Signed-off-by: Xiaotian Wu Signed-off-by: WANG Xuerui Acked-by: Tom Hromatka Signed-off-by: Paul Moore --- include/seccomp.h.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') diff --git a/include/seccomp.h.in b/include/seccomp.h.in index dfbb267..4ab10d9 100644 --- a/include/seccomp.h.in +++ b/include/seccomp.h.in @@ -152,6 +152,18 @@ struct scmp_arg_cmp { #endif /* AUDIT_ARCH_AARCH64 */ #define SCMP_ARCH_AARCH64 AUDIT_ARCH_AARCH64 +/** + * The LoongArch architecture tokens + */ +/* 64-bit LoongArch audit support is upstream as of 5.19-rc1 */ +#ifndef AUDIT_ARCH_LOONGARCH64 +#ifndef EM_LOONGARCH +#define EM_LOONGARCH 258 +#endif /* EM_LOONGARCH */ +#define AUDIT_ARCH_LOONGARCH64 (EM_LOONGARCH|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE) +#endif /* AUDIT_ARCH_LOONGARCH64 */ +#define SCMP_ARCH_LOONGARCH64 AUDIT_ARCH_LOONGARCH64 + /** * The MIPS architecture tokens */ -- cgit v1.2.1