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:
cognet 2005-05-11 21:20:42 +00:00
parent 7bc989441b
commit b2be2c6b08

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