summaryrefslogtreecommitdiffstats
path: root/sys/amd64/cloudabi32/cloudabi32_sysvec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/cloudabi32/cloudabi32_sysvec.c')
-rw-r--r--sys/amd64/cloudabi32/cloudabi32_sysvec.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/amd64/cloudabi32/cloudabi32_sysvec.c b/sys/amd64/cloudabi32/cloudabi32_sysvec.c
index d5dd58c..abede1a 100644
--- a/sys/amd64/cloudabi32/cloudabi32_sysvec.c
+++ b/sys/amd64/cloudabi32/cloudabi32_sysvec.c
@@ -90,15 +90,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_rax;
if (sa->code >= CLOUDABI32_SYS_MAXSYSCALL)
OpenPOWER on IntegriCloud