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.
22 lines
532 B
22 lines
532 B
#define get_syscall_args s390_get_syscall_args
|
|
#define ARCH_REGSET s390_regset
|
|
#include "../s390/get_syscall_args.c"
|
|
#undef ARCH_REGSET
|
|
#undef get_syscall_args
|
|
|
|
#define get_syscall_args s390x_get_syscall_args
|
|
#define ARCH_REGSET s390x_regset
|
|
#include "../s390/get_syscall_args.c"
|
|
#undef ARCH_REGSET
|
|
#undef get_syscall_args
|
|
|
|
/* Return -1 on error or 1 on success (never 0!). */
|
|
static int
|
|
get_syscall_args(struct tcb *tcp)
|
|
{
|
|
if (tcp->currpers == 1)
|
|
return s390_get_syscall_args(tcp);
|
|
else
|
|
return s390x_get_syscall_args(tcp);
|
|
}
|