strace/linux/s390x/arch_sigreturn.c
Dmitry V. Levin 92e347b556 Add copyright headers to some files that lack them
We do our best to keep copyright headers up to date, yet
git history provides better information on this subject
and is more accurate than copyright headers.
2018-12-24 23:46:43 +00:00

32 lines
640 B
C

/*
* Copyright (c) 2015-2018 The strace developers.
* All rights reserved.
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#include <stdint.h>
#define S390_SIGNAL_FRAMESIZE 96
#define SIGNAL_FRAMESIZE S390_SIGNAL_FRAMESIZE
#define PTR_TYPE uint32_t
#define arch_sigreturn s390_arch_sigreturn
#include "s390/arch_sigreturn.c"
#undef arch_sigreturn
#undef PTR_TYPE
#undef SIGNAL_FRAMESIZE
#define arch_sigreturn s390x_arch_sigreturn
#include "s390/arch_sigreturn.c"
#undef arch_sigreturn
static void
arch_sigreturn(struct tcb *tcp)
{
if (tcp->currpers == 1)
s390_arch_sigreturn(tcp);
else
s390x_arch_sigreturn(tcp);
}