1 /*
2 * Copyright (c) 2015-2021 The strace developers.
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7
8 #include <stdint.h>
9
10 #define PTR_TYPE uint32_t
11 #define arch_sigreturn s390_arch_sigreturn
12 #include "../s390/arch_sigreturn.c"
13 #undef arch_sigreturn
14 #undef PTR_TYPE
15 #undef SIGNAL_FRAMESIZE
16
17 #define SIGNAL_FRAMESIZE 160
18 #define arch_sigreturn s390x_arch_sigreturn
19 #include "../s390/arch_sigreturn.c"
20 #undef arch_sigreturn
21
22 static void
23 arch_sigreturn(struct tcb *tcp)
24 {
25 if (tcp->currpers == 1)
26 s390_arch_sigreturn(tcp);
27 else
28 s390x_arch_sigreturn(tcp);
29 }