• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #define get_syscall_args arm_get_syscall_args
2 #include "arm/get_syscall_args.c"
3 #undef get_syscall_args
4 
5 /* Return -1 on error or 1 on success (never 0!). */
6 static int
get_syscall_args(struct tcb * tcp)7 get_syscall_args(struct tcb *tcp)
8 {
9 	if (tcp->currpers == 1)
10 		return arm_get_syscall_args(tcp);
11 	tcp->u_arg[0] = aarch64_regs.regs[0];
12 	tcp->u_arg[1] = aarch64_regs.regs[1];
13 	tcp->u_arg[2] = aarch64_regs.regs[2];
14 	tcp->u_arg[3] = aarch64_regs.regs[3];
15 	tcp->u_arg[4] = aarch64_regs.regs[4];
16 	tcp->u_arg[5] = aarch64_regs.regs[5];
17 	return 1;
18 }
19