summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_thread.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2002-09-07 12:58:44 +0000
committerjulian <julian@FreeBSD.org>2002-09-07 12:58:44 +0000
commite26b91251243da5a23c8a73a31ff07e080568a97 (patch)
tree51a676932c5c1a32ed27d947cce553bb04338306 /sys/kern/kern_thread.c
parent04cbb04f2ee9a17616a80b202ef464b89abcd2f0 (diff)
downloadFreeBSD-src-e26b91251243da5a23c8a73a31ff07e080568a97.zip
FreeBSD-src-e26b91251243da5a23c8a73a31ff07e080568a97.tar.gz
fix braino..
was clearing part of wrong thread structure..
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r--sys/kern/kern_thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index 87b0f12..0f9c7dd 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -419,7 +419,7 @@ thread_schedule_upcall(struct thread *td, struct kse *ke)
}
CTR3(KTR_PROC, "thread_schedule_upcall: thread %p (pid %d, %s)",
td, td->td_proc->p_pid, td->td_proc->p_comm);
- bzero(&td->td_startzero,
+ bzero(&td2->td_startzero,
(unsigned)RANGEOF(struct thread, td_startzero, td_endzero));
bcopy(&td->td_startcopy, &td2->td_startcopy,
(unsigned) RANGEOF(struct thread, td_startcopy, td_endcopy));
OpenPOWER on IntegriCloud