1 static const int syscall_regs[MAX_ARGS] = { 2 4 * (REG_REG0+4), 4 * (REG_REG0+5), 4 * (REG_REG0+6), 3 4 * (REG_REG0+7), 4 * (REG_REG0 ), 4 * (REG_REG0+1) 4 }; 5 6 unsigned int i; 7 8 for (i = 0; i < tcp->s_ent->nargs; ++i) 9 if (upeek(tcp->pid, syscall_regs[i], &tcp->u_arg[i]) < 0) 10 return -1; 11