[BACK]Return to fpu.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / x86 / x86

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/arch/x86/x86/fpu.c between version 1.41 and 1.42

version 1.41, 2018/06/20 20:43:21 version 1.42, 2018/06/22 06:22:37
Line 237  fpuinit(struct cpu_info *ci)
Line 237  fpuinit(struct cpu_info *ci)
  * Get the value of MXCSR_MASK supported by the CPU.   * Get the value of MXCSR_MASK supported by the CPU.
  */   */
 void  void
 fpuinit_mxcsr_mask(bool has_fxsave)  fpuinit_mxcsr_mask(void)
 {  {
   #ifndef XEN
         if (!has_fxsave) {  
                 x86_fpu_mxcsr_mask = __INITIAL_MXCSR_MASK__;  
                 return;  
         }  
   
         union savefpu fpusave __aligned(16);          union savefpu fpusave __aligned(16);
         u_long psl;          u_long psl;
   
Line 267  fpuinit_mxcsr_mask(bool has_fxsave)
Line 262  fpuinit_mxcsr_mask(bool has_fxsave)
         } else {          } else {
                 x86_fpu_mxcsr_mask = fpusave.sv_xmm.fx_mxcsr_mask;                  x86_fpu_mxcsr_mask = fpusave.sv_xmm.fx_mxcsr_mask;
         }          }
   #else
           x86_fpu_mxcsr_mask = __INITIAL_MXCSR_MASK__;
   #endif
 }  }
   
 static void  static void

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

CVSweb <webmaster@jp.NetBSD.org>