Home | History | Annotate | Download | only in powerpc
      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] = ppc_regs.orig_gpr3;
      6 	tcp->u_arg[1] = ppc_regs.gpr[4];
      7 	tcp->u_arg[2] = ppc_regs.gpr[5];
      8 	tcp->u_arg[3] = ppc_regs.gpr[6];
      9 	tcp->u_arg[4] = ppc_regs.gpr[7];
     10 	tcp->u_arg[5] = ppc_regs.gpr[8];
     11 	return 1;
     12 }
     13