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] = avr32_regs.r12;
13 tcp->u_arg[1] = avr32_regs.r11;
14 tcp->u_arg[2] = avr32_regs.r10;
15 tcp->u_arg[3] = avr32_regs.r9;
16 tcp->u_arg[4] = avr32_regs.r5;
17 tcp->u_arg[5] = avr32_regs.r3;
18 return 1;
19 }