Dmitry V. Levin | 64672a6 | 2015-11-30 00:57:14 +0000 | [diff] [blame] | 1 | /* Return -1 on error or 1 on success (never 0!). */ |
2 | static int | ||||
3 | get_syscall_args(struct tcb *tcp) | ||||
4 | { | ||||
5 | long *arc_args = &arc_regs.scratch.r0; | ||||
6 | unsigned int i; | ||||
Dmitry V. Levin | d70d1c4 | 2015-03-22 22:13:55 +0000 | [diff] [blame] | 7 | |
Dmitry V. Levin | 64672a6 | 2015-11-30 00:57:14 +0000 | [diff] [blame] | 8 | for (i = 0; i < MAX_ARGS; ++i) |
9 | tcp->u_arg[i] = *arc_args--; | ||||
10 | return 1; | ||||
11 | } |