Dmitry V. Levin | d70d1c4 | 2015-03-22 22:13:55 +0000 | [diff] [blame^] | 1 | static const int argreg[MAX_ARGS] = { PT_R0, PT_R1, PT_R2, PT_R3, PT_R4, PT_R5 }; |
2 | unsigned int i; | ||||
3 | |||||
4 | for (i = 0; i < tcp->s_ent->nargs; ++i) | ||||
5 | if (upeek(tcp->pid, argreg[i], &tcp->u_arg[i]) < 0) | ||||
6 | return -1; |