diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:17:44 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:17:44 +0000 |
commit | 60dad306ec0ec094147037dfaa0a85a3991bc22b (patch) | |
tree | 39ed079e02026e8e0ed057ddd0771fd8f09ae46e | |
parent | f326d3b41267781072bb4f00a7ee9a30ac317787 (diff) | |
parent | 512387a627f9285ad50c22d4c54410a321ce9c5b (diff) | |
download | seccomp-tests-android14-mainline-uwb-release.tar.gz |
Snap for 10453563 from 512387a627f9285ad50c22d4c54410a321ce9c5b to mainline-uwb-releaseaml_uwb_341513070aml_uwb_341511050aml_uwb_341310300aml_uwb_341310030aml_uwb_341111010aml_uwb_341011000android14-mainline-uwb-release
Change-Id: Ia441d75932f82ac7a969304bc474ba32468fb207
-rw-r--r-- | linux/seccomp_bpf.c | 4 |
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 |