Home | History | Annotate | Download | only in s390x
      1 #define arch_get_scno s390_get_scno
      2 #define ARCH_REGSET s390_regset
      3 #include "../s390/get_scno.c"
      4 #undef ARCH_REGSET
      5 #undef arch_get_scno
      6 
      7 #define arch_get_scno s390x_get_scno
      8 #define ARCH_REGSET s390x_regset
      9 #include "../s390/get_scno.c"
     10 #undef ARCH_REGSET
     11 #undef arch_get_scno
     12 
     13 static int
     14 arch_get_scno(struct tcb *tcp)
     15 {
     16 	if (s390x_io.iov_len == sizeof(s390_regset))
     17 		return s390_get_scno(tcp);
     18 	else
     19 		return s390x_get_scno(tcp);
     20 }
     21