diff options
Diffstat (limited to 'src/linux/arc/get_scno.c')
-rw-r--r-- | src/linux/arc/get_scno.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/linux/arc/get_scno.c b/src/linux/arc/get_scno.c new file mode 100644 index 000000000..4d9a93e60 --- /dev/null +++ b/src/linux/arc/get_scno.c @@ -0,0 +1,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 = arc_regs.scratch.r8; + return 1; +} |