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 #define arch_sigreturn sparc64_arch_sigreturn
9 #include "../sparc/arch_sigreturn.c"
10 #undef arch_sigreturn
11
12 #define SIZEOF_STRUCT_SPARC_STACKF sizeof(struct sparc_stackf32)
13 #define SIZEOF_STRUCT_PT_REGS sizeof(struct pt_regs32)
14 #define PERSONALITY_WORDSIZE PERSONALITY1_WORDSIZE
15 #define arch_sigreturn sparc32_arch_sigreturn
16 #include "../sparc/arch_sigreturn.c"
17 #undef arch_sigreturn
18
19 static void
20 arch_sigreturn(struct tcb *tcp)
21 {
22 if (current_personality == 1)
23 sparc32_arch_sigreturn(tcp);
24 else
25 sparc64_arch_sigreturn(tcp);
26 }