summaryrefslogtreecommitdiff
path: root/linux/mips/arch_getrval2.c
blob: 33b53ba2b6905504263fb65b0f222203d6104e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Copyright (c) 2015-2018 The strace developers.
 * All rights reserved.
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

long
getrval2(struct tcb *tcp)
{
	if (ptrace_syscall_info_is_valid() && get_regs(tcp) < 0)
		return -1;
	return mips_regs.uregs[3];
}