summaryrefslogtreecommitdiff
path: root/linux/s390x/get_error.c
blob: c30b317f2384aac914d26bf68c0b7a2c1d567d23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "negated_errno.h"

#define arch_get_error s390_get_error
#define ARCH_REGSET s390_regset
#include "../s390/get_error.c"
#undef ARCH_REGSET
#undef arch_get_error

#define arch_get_error s390x_get_error
#define ARCH_REGSET s390x_regset
#include "../s390/get_error.c"
#undef ARCH_REGSET
#undef arch_get_error

static void
arch_get_error(struct tcb *tcp, const bool check_errno)
{
	if (tcp->currpers == 1)
		s390_get_error(tcp, check_errno);
	else
		s390x_get_error(tcp, check_errno);
}