diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-02-01 14:14:04 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-02-01 14:14:04 +0000 |
commit | 2571fd68d8c41ef8ef40109e3590cc0a6ecb8373 (patch) | |
tree | 39ed079e02026e8e0ed057ddd0771fd8f09ae46e | |
parent | f326d3b41267781072bb4f00a7ee9a30ac317787 (diff) | |
parent | 512387a627f9285ad50c22d4c54410a321ce9c5b (diff) | |
download | seccomp-tests-2571fd68d8c41ef8ef40109e3590cc0a6ecb8373.tar.gz |
Snap for 9550733 from 512387a627f9285ad50c22d4c54410a321ce9c5b to mainline-tzdata5-releaseaml_tz5_341510070aml_tz5_341510050aml_tz5_341510010aml_tz5_341510010
Change-Id: Ibe0a8cbb71059124b8b51027a7eade14ac2b45d0
-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 |