[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.145.6.2 and 1.145.6.3

version 1.145.6.2, 2017/09/09 17:29:40 version 1.145.6.3, 2018/03/13 15:47:44
Line 1112  skip_save:
Line 1112  skip_save:
         addl    $4,%esp          addl    $4,%esp
 #else  #else
         movl    PCB_ESP0(%ebx),%eax          movl    PCB_ESP0(%ebx),%eax
         movl    %eax,CPUVAR(ESP0)          movl    CPUVAR(TSS),%ecx
           movl    %eax,TSS_ESP0(%ecx)
 #endif  #endif
   
         /* Don't bother with the rest if switching to a system process. */          /* Don't bother with the rest if switching to a system process. */
Line 1136  skip_save:
Line 1137  skip_save:
         movl    PCB_IOMAP(%ebx),%eax          movl    PCB_IOMAP(%ebx),%eax
         orl     %eax,%eax          orl     %eax,%eax
         jnz     .Lcopy_iobitmap          jnz     .Lcopy_iobitmap
         movl    $(IOMAP_INVALOFF << 16),CPUVAR(IOBASE)          movl    CPUVAR(TSS),%eax
           movl    $(IOMAP_INVALOFF << 16),TSS_IOBASE(%eax)
 .Liobitmap_done:  .Liobitmap_done:
   
         /* Is this process using RAS (restartable atomic sequences)? */          /* Is this process using RAS (restartable atomic sequences)? */
Line 1200  switch_return:
Line 1202  switch_return:
         pushl   %esi          pushl   %esi
         pushl   %edi          pushl   %edi
         movl    %eax,%esi               /* pcb_iomap */          movl    %eax,%esi               /* pcb_iomap */
         movl    CPUVAR(SELF),%edi          movl    CPUVAR(TSS),%edi
         leal    CPU_INFO_IOMAP(%edi),%edi          leal    TSS_IOMAP(%edi),%edi
         rep          rep
         movsl          movsl
         popl    %edi          popl    %edi
         popl    %esi          popl    %esi
         movl    $((CPU_INFO_IOMAP - CPU_INFO_TSS) << 16),CPUVAR(IOBASE)          movl    CPUVAR(TSS),%eax
           movl    $((TSS_IOMAP - TSS_TSS) << 16),TSS_IOBASE(%eax)
         jmp     .Liobitmap_done          jmp     .Liobitmap_done
 END(cpu_switchto)  END(cpu_switchto)
   

Legend:
Removed from v.1.145.6.2  
changed lines
  Added in v.1.145.6.3

CVSweb <webmaster@jp.NetBSD.org>