summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-07-21 18:06:57 +0000
committerkib <kib@FreeBSD.org>2017-07-21 18:06:57 +0000
commit985b26c6741218c134a15526fd32b736bd73fa8a (patch)
treed36644ddbfdb88f2f1d5c702efa9e0eb21ffa94f /sys/powerpc
parent58ea6bbff153cb15e74f6ea19756c4a1013bfb41 (diff)
downloadFreeBSD-src-985b26c6741218c134a15526fd32b736bd73fa8a.zip
FreeBSD-src-985b26c6741218c134a15526fd32b736bd73fa8a.tar.gz
MFC r319873:
Move struct syscall_args syscall arguments parameters container into struct thread.
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/powerpc/trap.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c
index 4464dd8..95fb554 100644
--- a/sys/powerpc/powerpc/trap.c
+++ b/sys/powerpc/powerpc/trap.c
@@ -484,16 +484,18 @@ handle_onfault(struct trapframe *frame)
}
int
-cpu_fetch_syscall_args(struct thread *td, struct syscall_args *sa)
+cpu_fetch_syscall_args(struct thread *td)
{
struct proc *p;
struct trapframe *frame;
+ struct syscall_args *sa;
caddr_t params;
size_t argsz;
int error, n, i;
p = td->td_proc;
frame = td->td_frame;
+ sa = &td->td_sa;
sa->code = frame->fixreg[0];
params = (caddr_t)(frame->fixreg + FIRSTARG);
@@ -575,7 +577,6 @@ void
syscall(struct trapframe *frame)
{
struct thread *td;
- struct syscall_args sa;
int error;
td = curthread;
@@ -590,8 +591,8 @@ syscall(struct trapframe *frame)
"r"(td->td_pcb->pcb_cpu.aim.usr_vsid), "r"(USER_SLB_SLBE));
#endif
- error = syscallenter(td, &sa);
- syscallret(td, error, &sa);
+ error = syscallenter(td);
+ syscallret(td, error);
}
#ifdef __powerpc64__
OpenPOWER on IntegriCloud