1 #include <stdint.h> 2 3 #define S390_SIGNAL_FRAMESIZE 96 4 5 #define SIGNAL_FRAMESIZE S390_SIGNAL_FRAMESIZE 6 #define PTR_TYPE uint32_t 7 #define S390_FRAME_PTR s390_frame_ptr 8 #define arch_sigreturn s390_arch_sigreturn 9 #include "s390/arch_sigreturn.c" 10 #undef arch_sigreturn 11 #undef S390_FRAME_PTR 12 #undef PTR_TYPE 13 #undef SIGNAL_FRAMESIZE 14 15 #define S390_FRAME_PTR s390x_frame_ptr 16 #define arch_sigreturn s390x_arch_sigreturn 17 #include "s390/arch_sigreturn.c" 18 #undef arch_sigreturn 19 20 static void arch_sigreturn(struct tcb * tcp)21arch_sigreturn(struct tcb *tcp) 22 { 23 if (tcp->currpers == 1) 24 s390_arch_sigreturn(tcp); 25 else 26 s390x_arch_sigreturn(tcp); 27 } 28