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

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

Diff for /src/sys/arch/i386/i386/locore.S between version 1.107 and 1.108

version 1.107, 2013/10/23 20:18:50 version 1.108, 2013/12/01 01:05:16
Line 1077  ENTRY(cpu_switchto)
Line 1077  ENTRY(cpu_switchto)
         call    _C_LABEL(i386_tls_switch)          call    _C_LABEL(i386_tls_switch)
         addl    $4,%esp          addl    $4,%esp
 #else /* !XEN */  #else /* !XEN */
         movl    PCB_CR0(%ebx),%ecx          movl    $IPL_HIGH,CPUVAR(ILEVEL)
           movl    PCB_CR0(%ebx),%ecx              /* has CR0_TS clear */
         movl    %cr0,%edx          movl    %cr0,%edx
   
           /*
            * If our floating point registers are on a different CPU,
            * set CR0_TS so we'll trap rather than reuse bogus state.
            */
           cmpl    CPUVAR(FPCURLWP),%edi
           je      3f
           orl     $CR0_TS,%ecx
   
         /* Reloading CR0 is very expensive - avoid if possible. */          /* Reloading CR0 is very expensive - avoid if possible. */
         cmpl    %edx,%ecx  3:      cmpl    %edx,%ecx
         je      4f          je      4f
         movl    %ecx,%cr0          movl    %ecx,%cr0
 #endif /* !XEN */  #endif /* !XEN */

Legend:
Removed from v.1.107  
changed lines
  Added in v.1.108

CVSweb <webmaster@jp.NetBSD.org>