• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #define arch_set_error s390_set_error
2 #define arch_set_success s390_set_success
3 #define ARCH_REGSET s390_regset
4 #include "../s390/set_error.c"
5 #undef ARCH_REGSET
6 #undef arch_set_success
7 #undef arch_set_error
8 
9 #define arch_set_error s390x_set_error
10 #define arch_set_success s390x_set_success
11 #define ARCH_REGSET s390x_regset
12 #include "../s390/set_error.c"
13 #undef ARCH_REGSET
14 #undef arch_set_success
15 #undef arch_set_error
16 
17 static int
arch_set_error(struct tcb * tcp)18 arch_set_error(struct tcb *tcp)
19 {
20 	if (tcp->currpers == 1)
21 		return s390_set_error(tcp);
22 	else
23 		return s390x_set_error(tcp);
24 }
25 
26 static int
arch_set_success(struct tcb * tcp)27 arch_set_success(struct tcb *tcp)
28 {
29 	if (tcp->currpers == 1)
30 		return s390_set_success(tcp);
31 	else
32 		return s390x_set_success(tcp);
33 }
34