Revert "syscallarg_t: Add a type for system call arguments"
Missed issues in truss on at least armv7 and powerpcspe need to be resolved before recommit. This reverts commit3889fb8af0. This reverts commit1544e0f5d1.
This commit is contained in:
@@ -100,7 +100,7 @@ int
|
||||
cpu_fetch_syscall_args(struct thread *td)
|
||||
{
|
||||
struct proc *p;
|
||||
syscallarg_t *ap;
|
||||
register_t *ap;
|
||||
struct syscall_args *sa;
|
||||
u_int nap;
|
||||
int error;
|
||||
@@ -124,10 +124,10 @@ cpu_fetch_syscall_args(struct thread *td)
|
||||
else
|
||||
sa->callp = &p->p_sysent->sv_table[sa->code];
|
||||
error = 0;
|
||||
memcpy(sa->args, ap, nap * sizeof(*sa->args));
|
||||
memcpy(sa->args, ap, nap * sizeof(register_t));
|
||||
if (sa->callp->sy_narg > nap) {
|
||||
error = copyin((void *)td->td_frame->tf_usr_sp, sa->args +
|
||||
nap, (sa->callp->sy_narg - nap) * sizeof(*sa->args));
|
||||
nap, (sa->callp->sy_narg - nap) * sizeof(register_t));
|
||||
}
|
||||
if (error == 0) {
|
||||
td->td_retval[0] = 0;
|
||||
|
||||
Reference in New Issue
Block a user