mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 14:49:36 -04:00
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:
parent
befb7f333f
commit
e85d3fc3c8
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue