summaryrefslogtreecommitdiff
path: root/linux/aarch64/shuffle_scno.c
blob: a4c0d3bec602f7074d6f8da5b8ee2ec38d191241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (c) 2015-2018 The strace developers.
 * All rights reserved.
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#define shuffle_scno arm_shuffle_scno
#include "../arm/shuffle_scno.c"
#undef shuffle_scno

kernel_ulong_t
shuffle_scno(kernel_ulong_t scno)
{
	if (current_personality == 1)
		return arm_shuffle_scno(scno);

	return scno;
}