strace/linux/nios2/get_scno.c

15 lines
276 B
C
Raw Permalink Normal View History

/*
* 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 = nios2_regs.regs[2];
return 1;
}