• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Return -1 on error or 1 on success (never 0!). */
2 static int
get_syscall_args(struct tcb * tcp)3 get_syscall_args(struct tcb *tcp)
4 {
5 	tcp->u_arg[0] = m68k_regs.d1;
6 	tcp->u_arg[1] = m68k_regs.d2;
7 	tcp->u_arg[2] = m68k_regs.d3;
8 	tcp->u_arg[3] = m68k_regs.d4;
9 	tcp->u_arg[4] = m68k_regs.d5;
10 	tcp->u_arg[5] = m68k_regs.a0;
11 	return 1;
12 }
13