• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Return -1 on error or 1 on success (never 0!). */
2 static int
get_syscall_args(struct tcb * tcp)3 get_syscall_args(struct tcb *tcp)
4 {
5 	tcp->u_arg[0] = riscv_regs.a0;
6 	tcp->u_arg[1] = riscv_regs.a1;
7 	tcp->u_arg[2] = riscv_regs.a2;
8 	tcp->u_arg[3] = riscv_regs.a3;
9 	tcp->u_arg[4] = riscv_regs.a4;
10 	tcp->u_arg[5] = riscv_regs.a5;
11 	return 1;
12 }
13