[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.152 and 1.155

version 1.152, 2017/09/17 09:59:23 version 1.155, 2018/01/04 13:36:30
Line 838  begin:
Line 838  begin:
         pushl   $0      /* init386() expects a 64 bits paddr_t with PAE */          pushl   $0      /* init386() expects a 64 bits paddr_t with PAE */
 #endif  #endif
         pushl   %eax          pushl   %eax
           call    _C_LABEL(init_bootspace)
         call    _C_LABEL(init386)          call    _C_LABEL(init386)
         addl    $PDE_SIZE,%esp          /* pop paddr_t */          addl    $PDE_SIZE,%esp          /* pop paddr_t */
         addl    $NGDT*8,%esp            /* pop temporary gdt */          addl    $NGDT*8,%esp            /* pop temporary gdt */
Line 909  begin:
Line 910  begin:
         pushl   $0      /* init386() expects a 64 bits paddr_t with PAE */          pushl   $0      /* init386() expects a 64 bits paddr_t with PAE */
 #endif  #endif
         pushl   %esi          pushl   %esi
           call    _C_LABEL(init_bootspace)
         call    _C_LABEL(init386)          call    _C_LABEL(init386)
         addl    $PDE_SIZE,%esp          /* pop paddr_t */          addl    $PDE_SIZE,%esp          /* pop paddr_t */
         call    _C_LABEL(main)          call    _C_LABEL(main)
Line 1110  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 1134  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 1198  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.152  
changed lines
  Added in v.1.155

CVSweb <webmaster@jp.NetBSD.org>