summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2019-07-20 21:21:00 +0200
committerJeff Moyer <jmoyer@redhat.com>2019-07-29 12:33:19 -0400
commitf322f467c3cd2ac4d8d08a19bd281eabb65433b1 (patch)
treea04457cde6fb62974e036b4e32d4602e4801e29c
parentfca5217d524635bed70532aa68baff065d22d790 (diff)
downloadlibaio-f322f467c3cd2ac4d8d08a19bd281eabb65433b1.tar.gz
harness: Make RISC-V use SYS_eventfd2 instead of unavailable SYS_eventfd
This is a recent architecture and as such does not provide legacy support for SYS_eventfd. Declare that we need to use the new syscall. Signed-off-by: Guillem Jover <guillem@hadrons.org> Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
-rw-r--r--harness/cases/16.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/harness/cases/16.t b/harness/cases/16.t
index 5a546ff..b36bbd2 100644
--- a/harness/cases/16.t
+++ b/harness/cases/16.t
@@ -18,12 +18,12 @@
#define SYS_eventfd 318
#elif defined(__alpha__)
#define SYS_eventfd 478
-#elif defined(__aarch64__)
-/* arm64 does not implement eventfd, only eventfd2 */
+#elif defined(__aarch64__) || defined(__riscv)
+/* arm64 and riscv do not implement eventfd, only eventfd2 */
#define USE_EVENTFD2
#ifndef SYS_eventfd2
#define SYS_eventfd2 19
-#endif /* __aarch64__ */
+#endif /* __aarch64__ || __riscv */
#else
#error define SYS_eventfd for your arch!
#endif