summaryrefslogtreecommitdiff
path: root/linux/alpha/get_syscall_args.c
blob: 2e39b844dfbf8a4bcdec32cd0408b1b975891925 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Return -1 on error or 1 on success (never 0!). */
static int
arch_get_syscall_args(struct tcb *tcp)
{
	unsigned int i;

	for (i = 0; i < tcp->s_ent->nargs; ++i)
		if (upeek(tcp, REG_A0+i, &tcp->u_arg[i]) < 0)
			return -1;
	return 1;
}