diff options
Diffstat (limited to 'sys/arm/cloudabi32/cloudabi32_sysvec.c')
-rw-r--r-- | sys/arm/cloudabi32/cloudabi32_sysvec.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/arm/cloudabi32/cloudabi32_sysvec.c b/sys/arm/cloudabi32/cloudabi32_sysvec.c index a0bebcc..100fa47 100644 --- a/sys/arm/cloudabi32/cloudabi32_sysvec.c +++ b/sys/arm/cloudabi32/cloudabi32_sysvec.c @@ -67,15 +67,11 @@ cloudabi32_proc_setregs(struct thread *td, struct image_params *imgp, } static int -cloudabi32_fetch_syscall_args(struct thread *td) +cloudabi32_fetch_syscall_args(struct thread *td, struct syscall_args *sa) { - struct trapframe *frame; - struct syscall_args *sa; + struct trapframe *frame = td->td_frame; int error; - frame = td->td_frame; - sa = &td->td_sa; - /* Obtain system call number. */ sa->code = frame->tf_r12; if (sa->code >= CLOUDABI32_SYS_MAXSYSCALL) |