• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #define arch_set_scno s390_set_scno
2 #define ARCH_REGSET s390_regset
3 #include "../s390/set_scno.c"
4 #undef ARCH_REGSET
5 #undef arch_set_scno
6 
7 #define arch_set_scno s390x_set_scno
8 #define ARCH_REGSET s390x_regset
9 #include "../s390/set_scno.c"
10 #undef ARCH_REGSET
11 #undef arch_set_scno
12 
13 static int
arch_set_scno(struct tcb * tcp,kernel_ulong_t scno)14 arch_set_scno(struct tcb *tcp, kernel_ulong_t scno)
15 {
16 	if (tcp->currpers == 1)
17 		return s390_set_scno(tcp, scno);
18 	else
19 		return s390x_set_scno(tcp, scno);
20 }
21