aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:01:04 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:01:04 +0000
commit89bbbb33c390c6c5897a7d9cf729b6bcf289a8d6 (patch)
tree39ed079e02026e8e0ed057ddd0771fd8f09ae46e
parent747f11d6f3b7749a671bb9312927b1734a5bff32 (diff)
parent512387a627f9285ad50c22d4c54410a321ce9c5b (diff)
downloadseccomp-tests-android14-mainline-mediaprovider-release.tar.gz
Change-Id: I2957a2de090ff4210dabe1d390588318e19f6756
-rw-r--r--linux/seccomp_bpf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/seccomp_bpf.c b/linux/seccomp_bpf.c
index 949ac25..ad7d7ce 100644
--- a/linux/seccomp_bpf.c
+++ b/linux/seccomp_bpf.c
@@ -1242,6 +1242,10 @@ TEST_F(TRACE_poke, getpid_runs_normally)
# define ARCH_REGS s390_regs
# define SYSCALL_NUM gprs[2]
# define SYSCALL_RET gprs[2]
+#elif defined(__riscv)
+# define ARCH_REGS struct user_regs_struct
+# define SYSCALL_NUM a7
+# define SYSCALL_RET a0
#else
# error "Do not know how to find your architecture's registers and syscalls"
#endif