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] = tile_regs.regs[0]; 6 tcp->u_arg[1] = tile_regs.regs[1]; 7 tcp->u_arg[2] = tile_regs.regs[2]; 8 tcp->u_arg[3] = tile_regs.regs[3]; 9 tcp->u_arg[4] = tile_regs.regs[4]; 10 tcp->u_arg[5] = tile_regs.regs[5]; 11 return 1; 12 } 13