strace/linux/s390x/set_scno.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

28 lines
580 B
C

/*
* Copyright (c) 2016-2018 The strace developers.
* All rights reserved.
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#define arch_set_scno s390_set_scno
#define ARCH_REGSET s390_regset
#include "../s390/set_scno.c"
#undef ARCH_REGSET
#undef arch_set_scno
#define arch_set_scno s390x_set_scno
#define ARCH_REGSET s390x_regset
#include "../s390/set_scno.c"
#undef ARCH_REGSET
#undef arch_set_scno
static int
arch_set_scno(struct tcb *tcp, kernel_ulong_t scno)
{
if (tcp->currpers == 1)
return s390_set_scno(tcp, scno);
else
return s390x_set_scno(tcp, scno);
}