diff options
author | julian <julian@FreeBSD.org> | 2004-08-31 07:34:54 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2004-08-31 07:34:54 +0000 |
commit | 2782d4b3fc93d70e6b2e643c22ad90982b863bf1 (patch) | |
tree | 1a975f2ac0a0702045b32ec5bdafabf3aa115857 /sys/powerpc | |
parent | ee753ed190029f2bb1071fa1905073ad15121ae5 (diff) | |
download | FreeBSD-src-2782d4b3fc93d70e6b2e643c22ad90982b863bf1.zip FreeBSD-src-2782d4b3fc93d70e6b2e643c22ad90982b863bf1.tar.gz |
Remove an unneeded argument..
The removed argument could trivially be derived from the remaining one.
That in turn should be the same as curthread, but it is possible that curthread could be expensive to derive on some syste,s so leave it as an argument.
Having both proc and thread as an argumen tjust gives an opportunity for
them to get out sync.
MFC after: 3 days
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/aim/trap.c | 2 | ||||
-rw-r--r-- | sys/powerpc/powerpc/trap.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c index 52e2a69..d6ed9ca 100644 --- a/sys/powerpc/aim/trap.c +++ b/sys/powerpc/aim/trap.c @@ -341,7 +341,7 @@ syscall(struct trapframe *frame) atomic_add_int(&cnt.v_syscall, 1); if (p->p_flag & P_SA) - thread_user_enter(p, td); + thread_user_enter(td); code = frame->fixreg[0]; params = (caddr_t)(frame->fixreg + FIRSTARG); diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c index 52e2a69..d6ed9ca 100644 --- a/sys/powerpc/powerpc/trap.c +++ b/sys/powerpc/powerpc/trap.c @@ -341,7 +341,7 @@ syscall(struct trapframe *frame) atomic_add_int(&cnt.v_syscall, 1); if (p->p_flag & P_SA) - thread_user_enter(p, td); + thread_user_enter(td); code = frame->fixreg[0]; params = (caddr_t)(frame->fixreg + FIRSTARG); |