This complements commit
ea0e6e80260d2b1b7ad40282012b0e47869bcddf.
* syscall.c [CRISV10 || CRISV32] (syscall_fixup, syscall_enter): Pass
tcp pointer instead of pid to upeek().
* util.c [CRISV10 || CRISV32] (printcall): Likewise.
Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
return 0;
}
#elif defined(CRISV10) || defined(CRISV32)
- if (upeek(tcp->pid, 4*PT_R10, &r10) < 0)
+ if (upeek(tcp, 4*PT_R10, &r10) < 0)
return -1;
if (r10 != -ENOSYS && !(tcp->flags & TCB_INSYSCALL)) {
if (debug)
else
tcp->u_nargs = 0;
for (i = 0; i < tcp->u_nargs; i++) {
- if (upeek(tcp->pid, crisregs[i], &tcp->u_arg[i]) < 0)
+ if (upeek(tcp, crisregs[i], &tcp->u_arg[i]) < 0)
return -1;
}
}
#elif defined(CRISV10)
long pc;
- if (upeek(tcp->pid, 4*PT_IRP, &pc) < 0) {
+ if (upeek(tcp, 4*PT_IRP, &pc) < 0) {
PRINTBADPC;
return;
}
#elif defined(CRISV32)
long pc;
- if (upeek(tcp->pid, 4*PT_ERP, &pc) < 0) {
+ if (upeek(tcp, 4*PT_ERP, &pc) < 0) {
PRINTBADPC;
return;
}