mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
arm64: Clear FPU flags in the pcb in cpu_copy_thread().
New threads start off with clean FPU state instead of inheriting state from the parent thread. PR: 247945 Sponsored by: Netflix
This commit is contained in:
parent
c7f3aa34cf
commit
c6e27f5697
1 changed files with 1 additions and 0 deletions
|
|
@ -175,6 +175,7 @@ cpu_copy_thread(struct thread *td, struct thread *td0)
|
|||
td->td_pcb->pcb_x[9] = (uintptr_t)td;
|
||||
td->td_pcb->pcb_lr = (uintptr_t)fork_trampoline;
|
||||
td->td_pcb->pcb_sp = (uintptr_t)td->td_frame;
|
||||
td->td_pcb->pcb_fpflags &= ~(PCB_FP_STARTED | PCB_FP_KERN | PCB_FP_NOSAVE);
|
||||
td->td_pcb->pcb_fpusaved = &td->td_pcb->pcb_fpustate;
|
||||
td->td_pcb->pcb_vfpcpu = UINT_MAX;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue