diff options
author | kib <kib@FreeBSD.org> | 2016-02-02 14:16:07 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-02-02 14:16:07 +0000 |
commit | bac8688b17d735d252ec75a94df67384938f3f9b (patch) | |
tree | 120c7e477f273fc3239b5e7255ff0b3cc38dde49 /sys/i386 | |
parent | 14120d1fb726f9e2342c6cee6cf264a14ccf6cea (diff) | |
download | FreeBSD-src-bac8688b17d735d252ec75a94df67384938f3f9b.zip FreeBSD-src-bac8688b17d735d252ec75a94df67384938f3f9b.tar.gz |
MFC r294311:
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.
PR: 206370
MFC r294312:
Use ANSI definitions. Wrap long line.
MFC r294313:
Adjust i386 comment to match amd64 one after r294311.
Approved by: re (gjb)
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/isa/npx.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c index b0ea4e7..dff0f5c 100644 --- a/sys/i386/isa/npx.c +++ b/sys/i386/isa/npx.c @@ -503,11 +503,12 @@ npxinitstate(void *arg __unused) /* * The fninit instruction does not modify XMM - * registers. The fpusave call dumped the garbage - * contained in the registers after reset to the - * initial state saved. Clear XMM registers file - * image to make the startup program state and signal - * handler XMM register content predictable. + * registers or x87 registers (MM/ST). The fpusave + * call dumped the garbage contained in the registers + * after reset to the initial state saved. Clear XMM + * and x87 registers file image to make the startup + * program state and signal handler XMM/x87 register + * content predictable. */ bzero(npx_initialstate->sv_xmm.sv_fp, sizeof(npx_initialstate->sv_xmm.sv_fp)); |