aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_kse.c
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2002-10-05 04:49:46 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2002-10-05 04:49:46 +0000
commit0d29446006a8af3af9f196b0650eb8b7a87f395b (patch)
treeed4213cb8fad52ee0117c7c0bb065f9eca50e2c9 /sys/kern/kern_kse.c
parentecafb24b4124c7ef52a860852710b6eaf45c14f8 (diff)
downloadsrc-0d29446006a8af3af9f196b0650eb8b7a87f395b.tar.gz
src-0d29446006a8af3af9f196b0650eb8b7a87f395b.zip
Put an easy-to-miss assignment into the proper place. It was stray in the
middle of a block of code, with no clear assignment. While here, move one nearby assignment out of declaration.
Notes
Notes: svn path=/head/; revision=104503
Diffstat (limited to 'sys/kern/kern_kse.c')
-rw-r--r--sys/kern/kern_kse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c
index 2f6ccc5d571d..332611996937 100644
--- a/sys/kern/kern_kse.c
+++ b/sys/kern/kern_kse.c
@@ -340,13 +340,16 @@ thread_free(struct thread *td)
int
thread_export_context(struct thread *td)
{
- struct proc *p = td->td_proc;
+ struct proc *p;
struct ksegrp *kg;
uintptr_t mbx;
void *addr;
int error;
ucontext_t uc;
+ p = td->td_proc;
+ kg = td->td_ksegrp;
+
/* Export the user/machine context. */
#if 0
addr = (caddr_t)td->td_mailbox +
@@ -377,7 +380,6 @@ thread_export_context(struct thread *td)
* Put the saved address of the previous first
* entry into this one
*/
- kg = td->td_ksegrp;
for (;;) {
mbx = (uintptr_t)kg->kg_completed;
if (suword(addr, mbx)) {