summaryrefslogtreecommitdiffstats
path: root/sys/i386/svr4
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-09-18 21:20:58 +0000
committerjhb <jhb@FreeBSD.org>2001-09-18 21:20:58 +0000
commit8f1f6bfe731131ac417ea6a7343cf299875210df (patch)
tree30d2e6c5e7e847194d0e7b00ef5a33c9ec4faf33 /sys/i386/svr4
parent5ee8d7e54349c2993a352a1d0a313b68135c5027 (diff)
downloadFreeBSD-src-8f1f6bfe731131ac417ea6a7343cf299875210df.zip
FreeBSD-src-8f1f6bfe731131ac417ea6a7343cf299875210df.tar.gz
If we have a p variable pointing to td->td_proc already, use it instead of
needlessly repeating the indirection in several places. Half of the places used td->td_proc, and half used p. They are now consistent with each other and all use p.
Diffstat (limited to 'sys/i386/svr4')
-rw-r--r--sys/i386/svr4/svr4_machdep.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/i386/svr4/svr4_machdep.c b/sys/i386/svr4/svr4_machdep.c
index f1522f6..9355772 100644
--- a/sys/i386/svr4/svr4_machdep.c
+++ b/sys/i386/svr4/svr4_machdep.c
@@ -105,7 +105,7 @@ svr4_getcontext(td, uc, mask, oonstack)
struct sigaltstack *sf;
#endif
- PROC_LOCK(td->td_proc);
+ PROC_LOCK(p);
#if defined(DONE_MORE_SIGALTSTACK_WORK)
psp = p->p_sigacts;
sf = &p->p_sigstk;
@@ -163,7 +163,7 @@ svr4_getcontext(td, uc, mask, oonstack)
s->ss_size = 16384;
s->ss_flags = 0;
#endif
- PROC_UNLOCK(td->td_proc);
+ PROC_UNLOCK(p);
/*
* Set the signal mask
@@ -201,11 +201,11 @@ svr4_setcontext(td, uc)
struct sigaltstack *sf;
sigset_t mask;
- PROC_LOCK(td->td_proc);
+ PROC_LOCK(p);
#if defined(DONE_MORE_SIGALTSTACK_WORK)
- psp = td->td_proc->p_sigacts;
+ psp = p->p_sigacts;
#endif
- sf = &td->td_proc->p_sigstk;
+ sf = &p->p_sigstk;
/*
* XXX:
@@ -295,7 +295,7 @@ svr4_setcontext(td, uc)
SIG_CANTMASK(mask);
p->p_sigmask = mask;
}
- PROC_UNLOCK(td->td_proc);
+ PROC_UNLOCK(p);
return 0; /*EJUSTRETURN;*/
}
@@ -438,7 +438,7 @@ svr4_sendsig(catcher, sig, mask, code)
} else {
fp = (struct svr4_sigframe *)tf->tf_esp - 1;
}
- PROC_UNLOCK(td->td_proc);
+ PROC_UNLOCK(p);
/*
* Build the argument list for the signal handler.
@@ -472,7 +472,7 @@ svr4_sendsig(catcher, sig, mask, code)
* Process has trashed its stack; give it an illegal
* instruction to halt it in its tracks.
*/
- PROC_LOCK(td->td_proc);
+ PROC_LOCK(p);
sigexit(td, SIGILL);
/* NOTREACHED */
}
OpenPOWER on IntegriCloud