fix braino..

was clearing part of wrong thread structure..
This commit is contained in:
Julian Elischer 2002-09-07 12:58:44 +00:00
parent b8b743d723
commit c0698d32ce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103072
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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));