1 /* Return -1 on error or 1 on success (never 0!). */ 2 static int get_syscall_args(struct tcb * tcp)3get_syscall_args(struct tcb *tcp) 4 { 5 tcp->u_arg[0] = or1k_regs.gpr[3 + 0]; 6 tcp->u_arg[1] = or1k_regs.gpr[3 + 1]; 7 tcp->u_arg[2] = or1k_regs.gpr[3 + 2]; 8 tcp->u_arg[3] = or1k_regs.gpr[3 + 3]; 9 tcp->u_arg[4] = or1k_regs.gpr[3 + 4]; 10 tcp->u_arg[5] = or1k_regs.gpr[3 + 5]; 11 return 1; 12 } 13