[BACK]Return to cpufunc.S CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / amd64 / amd64

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

Diff for /src/sys/arch/amd64/amd64/cpufunc.S between version 1.15.10.4 and 1.16

version 1.15.10.4, 2011/08/27 15:37:22 version 1.16, 2009/10/01 09:13:54
Line 34 
Line 34 
  */   */
   
 #include <machine/asm.h>  #include <machine/asm.h>
 #include <machine/frameasm.h>  
 #include <machine/specialreg.h>  #include <machine/specialreg.h>
 #include <machine/segments.h>  #include <machine/segments.h>
   
Line 136  ENTRY(rcr8)
Line 135  ENTRY(rcr8)
  * modify the PSE, PGE, or PAE flag."   * modify the PSE, PGE, or PAE flag."
  *   *
  * (the alternatives not quoted above are not an option here.)   * (the alternatives not quoted above are not an option here.)
  *  
  * If PGE is not in use, we reload CR3.  
  */   */
 #ifndef XEN  #ifndef XEN
 ENTRY(tlbflushg)  ENTRY(tlbflushg)
         movq    %cr4, %rax          movq    %cr4, %rax
         testq   $CR4_PGE, %rax  
         jz      1f  
         movq    %rax, %rdx          movq    %rax, %rdx
         andq    $~CR4_PGE, %rdx          andq    $~CR4_PGE, %rdx
         movq    %rdx, %cr4          movq    %rdx, %cr4
Line 151  ENTRY(tlbflushg)
Line 146  ENTRY(tlbflushg)
         ret          ret
   
 ENTRY(tlbflush)  ENTRY(tlbflush)
 1:  
         movq    %cr3, %rax          movq    %cr3, %rax
         movq    %rax, %cr3          movq    %rax, %cr3
         ret          ret
Line 432  ENTRY(fxrstor)
Line 426  ENTRY(fxrstor)
   
 ENTRY(fldummy)  ENTRY(fldummy)
         ffree   %st(7)          ffree   %st(7)
         flds    (%rdi)          fld     (%rdi)
         ret          ret
   
 ENTRY(x86_ldmxcsr)  ENTRY(x86_ldmxcsr)
Line 519  ENTRY(outsl)
Line 513  ENTRY(outsl)
         rep          rep
         outsl          outsl
         ret          ret
   
 ENTRY(setfs)  
         movw    %di, %fs  
         ret  
   
 ENTRY(setusergs)  
         CLI(ax)  
         swapgs  
         movw    %di, %gs  
         swapgs  
         STI(ax)  
         ret  

Legend:
Removed from v.1.15.10.4  
changed lines
  Added in v.1.16

CVSweb <webmaster@jp.NetBSD.org>