diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:09:56 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:09:56 +0000 |
commit | 2664f654d397d6523e34b8d15d03984210c4f33b (patch) | |
tree | 39ed079e02026e8e0ed057ddd0771fd8f09ae46e | |
parent | 7c4aa25eb2954eaabfb520baf800a1fb6e42c090 (diff) | |
parent | 512387a627f9285ad50c22d4c54410a321ce9c5b (diff) | |
download | seccomp-tests-android14-mainline-permission-release.tar.gz |
Snap for 10453563 from 512387a627f9285ad50c22d4c54410a321ce9c5b to mainline-permission-releaseaml_per_341614000aml_per_341510010aml_per_341410020aml_per_341311000aml_per_341110020aml_per_341110010aml_per_341011100aml_per_341011020aml_per_340916010android14-mainline-permission-release
Change-Id: I907317eb8b111f5ecc53afd9076aff57ac4f2324
-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 |