diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-10-02 16:39:39 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-10-02 16:39:39 +0000 |
commit | 056df6de991d7f6d3d0b080a43615a12668e64e8 (patch) | |
tree | 22802414540e2813d34f7f49eeba388c9c17645f /sys | |
parent | 0f8f579414bbd404bad587ad1abe361f9023616b (diff) | |
download | FreeBSD-src-056df6de991d7f6d3d0b080a43615a12668e64e8.zip FreeBSD-src-056df6de991d7f6d3d0b080a43615a12668e64e8.tar.gz |
De-obfuscate local use of members of 'struct thread', for which we have
local variables, and group assignment.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_trap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 272714a..57ac165 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -83,7 +83,7 @@ userret(td, frame, oticks) PROC_LOCK(p); mtx_lock_spin(&sched_lock); if (SIGPENDING(p) && ((p->p_sflag & PS_NEEDSIGCHK) == 0 || - (td->td_kse->ke_flags & KEF_ASTPENDING) == 0)) + (ke->ke_flags & KEF_ASTPENDING) == 0)) printf("failed to set signal flags properly for ast()\n"); mtx_unlock_spin(&sched_lock); PROC_UNLOCK(p); @@ -168,6 +168,9 @@ ast(struct trapframe *framep) td = curthread; p = td->td_proc; + kg = td->td_ksegrp; + ke = td->td_kse; + CTR3(KTR_SYSC, "ast: thread %p (pid %d, %s)", td, p->p_pid, p->p_comm); KASSERT(TRAPF_USERMODE(framep), ("ast in kernel mode")); @@ -177,7 +180,6 @@ ast(struct trapframe *framep) #endif mtx_assert(&Giant, MA_NOTOWNED); mtx_assert(&sched_lock, MA_NOTOWNED); - kg = td->td_ksegrp; td->td_frame = framep; /* @@ -188,7 +190,6 @@ ast(struct trapframe *framep) * ast() will be called again. */ mtx_lock_spin(&sched_lock); - ke = td->td_kse; sticks = ke->ke_sticks; flags = ke->ke_flags; sflag = p->p_sflag; |