]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Clear whole XMM register file instead of only XMM0. Also clear x87
authorkib <kib@FreeBSD.org>
Tue, 19 Jan 2016 08:04:02 +0000 (08:04 +0000)
committerkib <kib@FreeBSD.org>
Tue, 19 Jan 2016 08:04:02 +0000 (08:04 +0000)
commitbee088bb002995f262c87caa5031f31856cc73a6
treeeb4209dc3e7180efcc0a30e5cfaf68e9da769ea3
parentd365b696370c6679f5167321df50c03ca9497e1a
Clear whole XMM register file instead of only XMM0.  Also clear x87
registers.  This brings amd64 on par with i386, providing consistent
initial FPU state.

Note that we do not clear any extended state, at least because kernel
does not understand extended state structure and consequences of zero
overwrite after fninit()/fpusave().

Submitted by: joss.upton@yahoo.com
PR: 206370
MFC after: 2 weeks
sys/amd64/amd64/fpu.c