Don't forget to copy the TP when forking, or bad things will happen to the

child process if it tries to use threads.
This commit is contained in:
Olivier Houchard 2005-05-11 21:20:42 +00:00
parent befb7f333f
commit e85d3fc3c8

View File

@ -134,6 +134,7 @@ cpu_fork(register struct thread *td1, register struct proc *p2,
/* Setup to release sched_lock in fork_exit(). */
td2->td_md.md_spinlock_count = 1;
td2->td_md.md_saved_cspr = 0;
td2->td_md.md_tp = *(uint32_t **)ARM_TP_ADDRESS;
}
void