aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/cloudabi64
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-06-17 00:14:54 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-06-17 00:14:54 +0000
commit4198293b2568c3fa287e7bde71162e9d442f4305 (patch)
tree8cfbc1a406237f68a9a68a544eb0b3129d6312ea /sys/amd64/cloudabi64
parent24d58133b7f7836aa02c66016f62b2a8d452ea18 (diff)
parentf2eb97b2cded8209e6d0d35930507dcfcf5bc794 (diff)
Merge ^/head r319801 through r320041.
Notes
Notes: svn path=/projects/clang500-import/; revision=320042
Diffstat (limited to 'sys/amd64/cloudabi64')
-rw-r--r--sys/amd64/cloudabi64/cloudabi64_sysvec.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/amd64/cloudabi64/cloudabi64_sysvec.c b/sys/amd64/cloudabi64/cloudabi64_sysvec.c
index 84f0cb387de7..679888bf52ad 100644
--- a/sys/amd64/cloudabi64/cloudabi64_sysvec.c
+++ b/sys/amd64/cloudabi64/cloudabi64_sysvec.c
@@ -87,9 +87,13 @@ cloudabi64_proc_setregs(struct thread *td, struct image_params *imgp,
}
static int
-cloudabi64_fetch_syscall_args(struct thread *td, struct syscall_args *sa)
+cloudabi64_fetch_syscall_args(struct thread *td)
{
- struct trapframe *frame = td->td_frame;
+ struct trapframe *frame;
+ struct syscall_args *sa;
+
+ frame = td->td_frame;
+ sa = &td->td_sa;
/* Obtain system call number. */
sa->code = frame->tf_rax;