]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
x86: Copy the FPU/XSAVE state from the creating thread to new threads.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 12 Mar 2021 17:47:41 +0000 (09:47 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 29 Mar 2021 18:10:37 +0000 (11:10 -0700)
commit1ebb5d7920fea1b8bb849d07bf930bd579f0695c
tree81db87eb02acec86984ee4dcfd01931ae4e5a367
parent77dfa7cfafb7afb6095f6f4ff30c4c22646b4989
x86: Copy the FPU/XSAVE state from the creating thread to new threads.

POSIX states that new threads created via pthread_create() should
inherit the "floating point environment" from the creating thread.

Sponsored by: Netflix

(cherry picked from commit 755efb8d8fcacc6607bc46469750d78497f89378)
sys/amd64/amd64/vm_machdep.c
sys/i386/i386/vm_machdep.c