1 /*
2 * Copyright (c) 2016-2021 The strace developers.
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7
8 /* Return -1 on error or 1 on success (never 0!). */
9 static int
10 arch_get_syscall_args(struct tcb *tcp)
11 {
12 tcp->u_arg[0] = riscv_regs.a0;
13 tcp->u_arg[1] = riscv_regs.a1;
14 tcp->u_arg[2] = riscv_regs.a2;
15 tcp->u_arg[3] = riscv_regs.a3;
16 tcp->u_arg[4] = riscv_regs.a4;
17 tcp->u_arg[5] = riscv_regs.a5;
18 return 1;
19 }