• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #define get_syscall_args s390_get_syscall_args
2 #define ARCH_REGSET s390_regset
3 #include "../s390/get_syscall_args.c"
4 #undef ARCH_REGSET
5 #undef get_syscall_args
6 
7 #define get_syscall_args s390x_get_syscall_args
8 #define ARCH_REGSET s390x_regset
9 #include "../s390/get_syscall_args.c"
10 #undef ARCH_REGSET
11 #undef get_syscall_args
12 
13 /* Return -1 on error or 1 on success (never 0!). */
14 static int
get_syscall_args(struct tcb * tcp)15 get_syscall_args(struct tcb *tcp)
16 {
17 	if (tcp->currpers == 1)
18 		return s390_get_syscall_args(tcp);
19 	else
20 		return s390x_get_syscall_args(tcp);
21 }
22