diff options
author | jake <jake@FreeBSD.org> | 2002-08-29 02:39:39 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-08-29 02:39:39 +0000 |
commit | 538db5220dfdbc2d35657e701341c46eba4116e0 (patch) | |
tree | b689729ea9137b6a8983bec131bce14ff1d87ae3 /sys | |
parent | d9c1d583948d87d54f5cc3d56497e04cb8474253 (diff) | |
download | FreeBSD-src-538db5220dfdbc2d35657e701341c46eba4116e0.zip FreeBSD-src-538db5220dfdbc2d35657e701341c46eba4116e0.tar.gz |
Minor cleanup.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sparc64/sparc64/machdep.c | 8 |
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; |