• 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 	unsigned long *arc_args = &arc_regs.scratch.r0;
6 	unsigned int i;
7 
8 	for (i = 0; i < MAX_ARGS; ++i)
9 		tcp->u_arg[i] = *arc_args--;
10 	return 1;
11 }
12