You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
243 B
12 lines
243 B
4 months ago
|
/* Return -1 on error or 1 on success (never 0!). */
|
||
|
static int
|
||
|
get_syscall_args(struct tcb *tcp)
|
||
|
{
|
||
|
unsigned long *arc_args = &arc_regs.scratch.r0;
|
||
|
unsigned int i;
|
||
|
|
||
|
for (i = 0; i < MAX_ARGS; ++i)
|
||
|
tcp->u_arg[i] = *arc_args--;
|
||
|
return 1;
|
||
|
}
|