View | Details | Raw Unified | Return to bug 206370
Collapse All | Expand All

(-)b/amd64/amd64/fpu.c (-6 / +7 lines)
Lines 318-330 fpuinitstate(void *arg __unused) Link Here
318
		cpu_mxcsr_mask = 0xFFBF;
318
		cpu_mxcsr_mask = 0xFFBF;
319
319
320
	/*
320
	/*
321
	 * The fninit instruction does not modify XMM registers.  The
321
	 * The fninit instruction does not modify XMM registers or FPU
322
	 * fpusave call dumped the garbage contained in the registers
322
	 * registers (MM/ST).  The fpusave call dumped the garbage contained
323
	 * after reset to the initial state saved.  Clear XMM
323
	 * in the registers after reset to the initial state saved.  Clear
324
	 * registers file image to make the startup program state and
324
	 * XMM and FPU registers file image to make the startup program state
325
	 * signal handler XMM register content predictable.
325
	 * and signal handler XMM register content predictable.
326
	 */
326
	 */
327
	bzero(&fpu_initialstate->sv_xmm[0], sizeof(struct xmmacc));
327
	bzero(&fpu_initialstate->sv_fp[0], sizeof(fpu_initialstate->sv_fp));
328
	bzero(&fpu_initialstate->sv_xmm[0], sizeof(fpu_initialstate->sv_xmm));
328
329
329
	/*
330
	/*
330
	 * Create a table describing the layout of the CPU Extended
331
	 * Create a table describing the layout of the CPU Extended

Return to bug 206370