Home | History | Annotate | Download | only in sparc
      1 /* Return -1 on error or 1 on success (never 0!). */
      2 static int
      3 get_syscall_args(struct tcb *tcp)
      4 {
      5 	tcp->u_arg[0] = sparc_regs.u_regs[U_REG_O0 + 0];
      6 	tcp->u_arg[1] = sparc_regs.u_regs[U_REG_O0 + 1];
      7 	tcp->u_arg[2] = sparc_regs.u_regs[U_REG_O0 + 2];
      8 	tcp->u_arg[3] = sparc_regs.u_regs[U_REG_O0 + 3];
      9 	tcp->u_arg[4] = sparc_regs.u_regs[U_REG_O0 + 4];
     10 	tcp->u_arg[5] = sparc_regs.u_regs[U_REG_O0 + 5];
     11 	return 1;
     12 }
     13