diff options
author | Xiaotian Wu <wuxiaotian@loongson.cn> | 2021-02-09 15:39:13 +0800 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2023-02-18 22:07:30 -0500 |
commit | 6966ec77b195ac289ae168c7c5646d59a307f33f (patch) | |
tree | daa4e9a4febf1e891195a61c608b6fc0155967ff /include | |
parent | 315f7b9ec6d8992035a2c0f652949ee34843db32 (diff) | |
download | libseccomp-6966ec77b195ac289ae168c7c5646d59a307f33f.tar.gz |
arch: Add 64-bit LoongArch support
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Signed-off-by: WANG Xuerui <git@xen0n.name>
Acked-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/seccomp.h.in | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ -153,6 +153,18 @@ struct scmp_arg_cmp { #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 */ #ifndef __AUDIT_ARCH_CONVENTION_MIPS64_N32 |