mips o32: implement fetching the 7th subcall argument
* syscall.c [LINUX_MIPSO32] (decode_mips_subcall): Fetch the last argument of 7-arg syscalls.
This commit is contained in:
parent
1929c2216a
commit
54a4a1a918
11
syscall.c
11
syscall.c
@ -643,11 +643,18 @@ decode_mips_subcall(struct tcb *tcp)
|
||||
sizeof(tcp->u_arg) - sizeof(tcp->u_arg[0]));
|
||||
/*
|
||||
* Fetching the last arg of 7-arg syscalls (fadvise64_64
|
||||
* and sync_file_range) would require additional code,
|
||||
* and sync_file_range) requires additional code,
|
||||
* see linux/mips/get_syscall_args.c
|
||||
*/
|
||||
if (tcp->s_ent->nargs == MAX_ARGS) {
|
||||
if (umoven(tcp,
|
||||
mips_REG_SP + MAX_ARGS * sizeof(tcp->u_arg[0]),
|
||||
sizeof(tcp->u_arg[0]),
|
||||
&tcp->u_arg[MAX_ARGS - 1]) < 0)
|
||||
tcp->u_arg[MAX_ARGS - 1] = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif /* LINUX_MIPSO32 */
|
||||
|
||||
static void
|
||||
dumpio(struct tcb *tcp)
|
||||
|
Loading…
x
Reference in New Issue
Block a user