diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2020-06-26 12:06:20 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-06-26 16:41:30 +0200 |
| commit | 1cbaafd1194772cb80afae9983e48f4a38b5ed1e (patch) | |
| tree | 5d871d7429348ad459634b95ac697a47e05f5ecd /executor | |
| parent | 999d3ea4e03b435a062eca30e08cc65525822d04 (diff) | |
executor: add support for linux/riscv64
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/common_linux.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <errno.h> #include <fcntl.h> #include <linux/kvm.h> @@ -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 <errno.h> |
