(root)/
strace-6.5/
src/
linux/
m68k/
get_syscall_args.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 -1 on error or 1 on success (never 0!). */
       9  static int
      10  arch_get_syscall_args(struct tcb *tcp)
      11  {
      12  	tcp->u_arg[0] = m68k_regs.d1;
      13  	tcp->u_arg[1] = m68k_regs.d2;
      14  	tcp->u_arg[2] = m68k_regs.d3;
      15  	tcp->u_arg[3] = m68k_regs.d4;
      16  	tcp->u_arg[4] = m68k_regs.d5;
      17  	tcp->u_arg[5] = m68k_regs.a0;
      18  	return 1;
      19  }