CRIS: Correct first argument to upeek()
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>
diff --git a/syscall.c b/syscall.c
index 26b1a9d..a2e6885 100644
--- a/syscall.c
+++ b/syscall.c
@@ -1504,7 +1504,7 @@
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)
@@ -2227,7 +2227,7 @@
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;
}
}