summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-08-11 07:05:55 +0000
committerjake <jake@FreeBSD.org>2003-08-11 07:05:55 +0000
commit09ab42f3bdd2cb5549d00378979cccfecdad4cfc (patch)
tree7b366701fea42dd1b940946eeb808a6934573552 /sys/sparc64
parentc2c22b4cf07ca8af558b2cf72af42b874f23aba8 (diff)
downloadFreeBSD-src-09ab42f3bdd2cb5549d00378979cccfecdad4cfc.zip
FreeBSD-src-09ab42f3bdd2cb5549d00378979cccfecdad4cfc.tar.gz
Fix sparc64 LINT build. <blush>
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/machdep.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c
index c4cf9d8..505ba38 100644
--- a/sys/sparc64/sparc64/machdep.c
+++ b/sys/sparc64/sparc64/machdep.c
@@ -521,6 +521,7 @@ int
sigreturn(struct thread *td, struct sigreturn_args *uap)
{
struct proc *p;
+ mcontext_t *mc;
ucontext_t uc;
int error;
@@ -536,7 +537,8 @@ sigreturn(struct thread *td, struct sigreturn_args *uap)
return (EFAULT);
}
- error = set_mcontext(td, &uc.uc_mcontext);
+ mc = &uc.uc_mcontext;
+ error = set_mcontext(td, mc);
if (error != 0)
return (error);
@@ -547,7 +549,7 @@ sigreturn(struct thread *td, struct sigreturn_args *uap)
PROC_UNLOCK(p);
CTR4(KTR_SIG, "sigreturn: return td=%p pc=%#lx sp=%#lx tstate=%#lx",
- td, tf->tf_tpc, tf->tf_sp, tf->tf_tstate);
+ td, mc->mc_tpc, mc->mc_sp, mc->mc_tstate);
return (EJUSTRETURN);
}
OpenPOWER on IntegriCloud