enosys: add support for LoongArch
PATCH 1/1 enosys: add support for LoongArch
Signed-off-by Enze Li <[email protected]>
--- misc-utils/enosys.c | 6 ++++++ 1 file changed, 6 insertions(+)
misc-utils/enosys.c +6 -0
@@ -70,6 +70,12 @@# else # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARCV2# endif +#elif __loongarch__ +# if _LOONGARCH_SZPTR ==32 +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH32 +# elif _LOONGARCH_SZPTR ==64 +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH64 +# endif #else # error Unknown target architecture#endif
base-commit: fe0b1e793c9017edba72768e2e0b4c769c204604
Signature · 1 line
2.34.1
Karel Zak
maintainerPlease, see https://github.com/util-linux/util-linux/pull/2260, Thomas wants to move all this to include/audit-arch.h
Karel
Quoted 27 lines · Enze Li
Signed-off-by Enze Li <[email protected]>--- misc-utils/enosys.c | 6 ++++++ 1 file changed, 6 insertions(+)misc-utils/enosys.c +6
-0@@ -70,6 +70,12 @@# else # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARCV2# endif +#elif __loongarch__ +# if _LOONGARCH_SZPTR ==32 +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH32 +# elif _LOONGARCH_SZPTR ==64 +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH64 +# endif #else # error Unknown target architecture#endif base-commit:
fe0b1e793c9017edba72768e2e0b4c769c204604Signature · 1 line
2.34.1
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com