summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-08-29 02:39:39 +0000
committerjake <jake@FreeBSD.org>2002-08-29 02:39:39 +0000
commit538db5220dfdbc2d35657e701341c46eba4116e0 (patch)
treeb689729ea9137b6a8983bec131bce14ff1d87ae3 /sys
parentd9c1d583948d87d54f5cc3d56497e04cb8474253 (diff)
downloadFreeBSD-src-538db5220dfdbc2d35657e701341c46eba4116e0.zip
FreeBSD-src-538db5220dfdbc2d35657e701341c46eba4116e0.tar.gz
Minor cleanup.
Diffstat (limited to 'sys')
-rw-r--r--sys/sparc64/sparc64/machdep.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c
index a535b54..477e5c2 100644
--- a/sys/sparc64/sparc64/machdep.c
+++ b/sys/sparc64/sparc64/machdep.c
@@ -605,15 +605,17 @@ setregs(struct thread *td, u_long entry, u_long stack, u_long ps_strings)
struct trapframe *tf;
struct md_utrap *ut;
struct pcb *pcb;
+ struct proc *p;
u_long sp;
/* XXX no cpu_exec */
- td->td_proc->p_md.md_sigtramp = NULL;
- if ((ut = td->td_proc->p_md.md_utrap) != NULL) {
+ p = td->td_proc;
+ p->p_md.md_sigtramp = NULL;
+ if ((ut = p->p_md.md_utrap) != NULL) {
ut->ut_refcnt--;
if (ut->ut_refcnt == 0)
free(ut, M_SUBPROC);
- td->td_proc->p_md.md_utrap = NULL;
+ p->p_md.md_utrap = NULL;
}
pcb = td->td_pcb;
OpenPOWER on IntegriCloud