]> Sergey Matveev's repositories - public-inbox.git/commitdiff
syscall: add support for riscv64
authorEric Wong <e@80x24.org>
Thu, 11 Aug 2022 22:33:12 +0000 (22:33 +0000)
committerEric Wong <e@80x24.org>
Thu, 11 Aug 2022 22:39:54 +0000 (22:39 +0000)
Tested on gcc92.fsffrance.org from cfarm.

lib/PublicInbox/Syscall.pm

index 777c44d0660269d9753de2682b9000e04db5b4f2..46496bcaef55085822df8047b3393cd6d876a24c 100644 (file)
@@ -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)