summaryrefslogtreecommitdiff
path: root/linux/riscv/get_scno.c
blob: 6b4256e74b81760698d05fc11d0dbe8d241dfecf (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
 */

/* Return codes: 1 - ok, 0 - ignore, other - error. */
static int
arch_get_scno(struct tcb *tcp)
{
	tcp->scno = riscv_regs.a7;
	return 1;
}