You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
413 B

/* Return -1 on error or 1 on success (never 0!). */
static int
get_syscall_args(struct tcb *tcp)
{
tcp->u_arg[0] = sparc_regs.u_regs[U_REG_O0 + 0];
tcp->u_arg[1] = sparc_regs.u_regs[U_REG_O0 + 1];
tcp->u_arg[2] = sparc_regs.u_regs[U_REG_O0 + 2];
tcp->u_arg[3] = sparc_regs.u_regs[U_REG_O0 + 3];
tcp->u_arg[4] = sparc_regs.u_regs[U_REG_O0 + 4];
tcp->u_arg[5] = sparc_regs.u_regs[U_REG_O0 + 5];
return 1;
}