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

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