blob: 8ec3d28165e42f296e987bf64d76b58d8027e770 [file] [log] [blame]
/* Return -1 on error or 1 on success (never 0!). */
static int
get_syscall_args(struct tcb *tcp)
{
tcp->u_arg[0] = m68k_regs.d1;
tcp->u_arg[1] = m68k_regs.d2;
tcp->u_arg[2] = m68k_regs.d3;
tcp->u_arg[3] = m68k_regs.d4;
tcp->u_arg[4] = m68k_regs.d5;
tcp->u_arg[5] = m68k_regs.a0;
return 1;
}