From: Enze Li <lienze@kylinos.cn>
To: util-linux@vger.kernel.org
Cc: Enze Li <lienze@kylinos.cn>
Subject: [PATCH] enosys: add support for LoongArch
Date: Tue, 23 May 2023 16:33:56 +0800 [thread overview]
Message-ID: <20230523083356.377658-1-lienze@kylinos.cn> (raw)
Signed-off-by: Enze Li <lienze@kylinos.cn>
---
misc-utils/enosys.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/misc-utils/enosys.c b/misc-utils/enosys.c
index 02978c20a..9facbcb53 100644
--- a/misc-utils/enosys.c
+++ b/misc-utils/enosys.c
@@ -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
--
2.34.1
next reply other threads:[~2023-05-23 8:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-23 8:33 Enze Li [this message]
2023-05-23 9:08 ` [PATCH] enosys: add support for LoongArch Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230523083356.377658-1-lienze@kylinos.cn \
--to=lienze@kylinos.cn \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).