* [PATCH] syscall: add support for riscv64
@ 2022-08-11 22:33 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2022-08-11 22:33 UTC (permalink / raw)
To: meta
Tested on gcc92.fsffrance.org from cfarm.
---
lib/PublicInbox/Syscall.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/Syscall.pm b/lib/PublicInbox/Syscall.pm
index 777c44d0..46496bca 100644
--- a/lib/PublicInbox/Syscall.pm
+++ b/lib/PublicInbox/Syscall.pm
@@ -206,7 +206,7 @@ if ($^O eq "linux") {
$u64_mod_8 = 1;
$SYS_signalfd4 = 484;
$SFD_CLOEXEC = 010000000;
- } elsif ($machine eq 'aarch64' || $machine eq 'loongarch64') {
+ } elsif ($machine =~ /\A(?:loong)?aarch64\z/ || $machine eq 'riscv64') {
$SYS_epoll_create = 20; # (sys_epoll_create1)
$SYS_epoll_ctl = 21;
$SYS_epoll_wait = 22; # (sys_epoll_pwait)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-11 22:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-11 22:33 [PATCH] syscall: add support for riscv64 Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
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).