From 1cbaafd1194772cb80afae9983e48f4a38b5ed1e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 26 Jun 2020 12:06:20 +0200 Subject: executor: add support for linux/riscv64 Signed-off-by: Tobias Klauser --- executor/common_linux.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'executor/common_linux.h') diff --git a/executor/common_linux.h b/executor/common_linux.h index 8e816fb8e..a5da21c3f 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -1657,6 +1657,8 @@ struct fs_image_segment { #define sys_memfd_create 314 #elif GOARCH_s390x #define sys_memfd_create 350 +#elif GOARCH_riscv64 +#define sys_memfd_create 279 #endif static unsigned long fs_image_segment_check(unsigned long size, unsigned long nsegs, long segments) @@ -1857,6 +1859,8 @@ error: #endif #if SYZ_EXECUTOR || __NR_syz_kvm_setup_cpu +// KVM is not yet supported on RISC-V +#if !GOARCH_riscv64 #include #include #include @@ -1876,6 +1880,7 @@ static long syz_kvm_setup_cpu(volatile long a0, volatile long a1, volatile long } #endif #endif +#endif #if SYZ_EXECUTOR || SYZ_NET_RESET #include -- cgit mrf-deployment