• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef ARCH_REGSET
2 # define ARCH_REGSET s390_regset
3 #endif
4 
5 /* Return -1 on error or 1 on success (never 0!). */
6 static int
get_syscall_args(struct tcb * tcp)7 get_syscall_args(struct tcb *tcp)
8 {
9 	tcp->u_arg[0] = ARCH_REGSET.orig_gpr2;
10 	tcp->u_arg[1] = ARCH_REGSET.gprs[3];
11 	tcp->u_arg[2] = ARCH_REGSET.gprs[4];
12 	tcp->u_arg[3] = ARCH_REGSET.gprs[5];
13 	tcp->u_arg[4] = ARCH_REGSET.gprs[6];
14 	tcp->u_arg[5] = ARCH_REGSET.gprs[7];
15 	return 1;
16 }
17