[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.53 and 1.54

version 1.53, 2007/10/18 15:28:35 version 1.54, 2007/11/10 20:06:24
Line 755  ENTRY(cpu_switchto)
Line 755  ENTRY(cpu_switchto)
         /* Switch TSS.  Reset "task busy" flag before loading. */          /* Switch TSS.  Reset "task busy" flag before loading. */
         movl    %cr3,%eax          movl    %cr3,%eax
         movl    %eax,PCB_CR3(%ebx)      # for TSS gates          movl    %eax,PCB_CR3(%ebx)      # for TSS gates
         movl    CPUVAR(GDT),%eax          movl    CPUVAR(GDT),%ecx
         movl    L_MD_TSS_SEL(%edi),%edx          movl    L_MD_TSS_SEL(%edi),%edx
         andl    $~0x0200,4(%eax,%edx, 1)          andl    $~0x0200,4(%ecx,%edx, 1)
         ltr     %dx          ltr     %dx
   
         /* Set curlwp. */          /* Set curlwp. */
Line 772  ENTRY(cpu_switchto)
Line 772  ENTRY(cpu_switchto)
         cmpl    $0,P_RASLIST(%eax)          cmpl    $0,P_RASLIST(%eax)
         jne     5f          jne     5f
   
           /* Restore thread-private %fs/%gs descriptors. */
           movl    L_MD_FSD(%edi), %eax
           movl    L_MD_FSD+4(%edi), %edx
           movl    %eax, (GUFS_SEL*8)(%ecx)
           movl    %edx, (GUFS_SEL*8+4)(%ecx)
           movl    L_MD_GSD(%edi), %eax
           movl    L_MD_GSD+4(%edi), %edx
           movl    %eax, (GUGS_SEL*8)(%ecx)
           movl    %edx, (GUGS_SEL*8+4)(%ecx)
   
         /*          /*
          * Restore cr0 (including FPU state).  Raise the IPL to IPL_IPI.           * Restore cr0 (including FPU state).  Raise the IPL to IPL_IPI.
          * FPU IPIs can alter the LWP's saved cr0.  Dropping the priority           * FPU IPIs can alter the LWP's saved cr0.  Dropping the priority

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

CVSweb <webmaster@jp.NetBSD.org>