FreeBSD Bugzilla – Attachment 165763 Details for
Bug 206370
amd64 fpu not fully initialized
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fpu zero-ing diff
fpu-zero.patch (text/plain), 1.11 KB, created by
joss.upton
on 2016-01-18 16:13:23 UTC
(
hide
)
Description:
fpu zero-ing diff
Filename:
MIME Type:
Creator:
joss.upton
Created:
2016-01-18 16:13:23 UTC
Size:
1.11 KB
patch
obsolete
>diff --git a/amd64/amd64/fpu.c b/amd64/amd64/fpu.c >index 6f1db9f..ab2e307 100644 >--- a/amd64/amd64/fpu.c >+++ b/amd64/amd64/fpu.c >@@ -318,13 +318,14 @@ fpuinitstate(void *arg __unused) > cpu_mxcsr_mask = 0xFFBF; > > /* >- * 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. >+ * The fninit instruction does not modify XMM registers or FPU >+ * registers (MM/ST). The fpusave call dumped the garbage contained >+ * in the registers after reset to the initial state saved. Clear >+ * XMM and FPU registers file image to make the startup program state >+ * and signal handler XMM register content predictable. > */ >- bzero(&fpu_initialstate->sv_xmm[0], sizeof(struct xmmacc)); >+ bzero(&fpu_initialstate->sv_fp[0], sizeof(fpu_initialstate->sv_fp)); >+ bzero(&fpu_initialstate->sv_xmm[0], sizeof(fpu_initialstate->sv_xmm)); > > /* > * Create a table describing the layout of the CPU Extended
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 206370
: 165763