Home | History | Annotate | Download | only in i386
      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] = i386_regs.ebx;
      6 	tcp->u_arg[1] = i386_regs.ecx;
      7 	tcp->u_arg[2] = i386_regs.edx;
      8 	tcp->u_arg[3] = i386_regs.esi;
      9 	tcp->u_arg[4] = i386_regs.edi;
     10 	tcp->u_arg[5] = i386_regs.ebp;
     11 	return 1;
     12 }
     13