]> 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>
Fri, 12 Mar 2021 17:47:41 +0000 (09:47 -0800)
commit755efb8d8fcacc6607bc46469750d78497f89378
treee44fe5b5d3975d3d08ef8e2ddf354c2d10ffdf0a
parent704547ce1ca56e1123048cd152ed4e468d41d703
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.

Discussed with: kib
MFC after: 1 week
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D29204
sys/amd64/amd64/vm_machdep.c
sys/i386/i386/vm_machdep.c