1 /* Return -1 on error or 1 on success (never 0!). */ 2 static int 3 get_syscall_args(struct tcb *tcp) 4 { 5 tcp->u_arg[0] = avr32_regs.r12; 6 tcp->u_arg[1] = avr32_regs.r11; 7 tcp->u_arg[2] = avr32_regs.r10; 8 tcp->u_arg[3] = avr32_regs.r9; 9 tcp->u_arg[4] = avr32_regs.r5; 10 tcp->u_arg[5] = avr32_regs.r3; 11 return 1; 12 } 13