(root)/
strace-6.5/
src/
linux/
csky/
get_scno.c
       1  /*
       2   * Copyright (c) 2015-2021 The strace developers.
       3   * All rights reserved.
       4   *
       5   * SPDX-License-Identifier: LGPL-2.1-or-later
       6   */
       7  
       8  /* Return codes: 1 - ok, 0 - ignore, other - error. */
       9  static int
      10  arch_get_scno(struct tcb *tcp)
      11  {
      12  #if defined(__CSKYABIV2__)
      13  	tcp->scno = csky_regs.regs[3];
      14  #else
      15  	tcp->scno = csky_regs.a1;
      16  #endif
      17  	return 1;
      18  }