[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.141 and 1.144.2.1

version 1.141, 2016/11/25 14:12:55 version 1.144.2.1, 2017/04/21 16:53:28
Line 601  no_NOX:
Line 601  no_NOX:
  */   */
   
         /* Find end of kernel image; brings us on (1). */          /* Find end of kernel image; brings us on (1). */
         movl    $RELOC(end),%edi          movl    $RELOC(__kernel_end),%edi
   
 #if (NKSYMS || defined(DDB) || defined(MODULAR)) && !defined(makeoptions_COPY_SYMTAB)  #if (NKSYMS || defined(DDB) || defined(MODULAR)) && !defined(makeoptions_COPY_SYMTAB)
         /* Save the symbols (if loaded); brinds us on (2). */          /* Save the symbols (if loaded); brinds us on (2). */
Line 633  no_NOX:
Line 633  no_NOX:
         incl    %eax            /* one more PTP for VAs stolen by bootstrap */          incl    %eax            /* one more PTP for VAs stolen by bootstrap */
 1:      movl    %eax,RELOC(nkptp)+1*4  1:      movl    %eax,RELOC(nkptp)+1*4
   
         /* tablesize = (PDP_SIZE + UPAGES + nkptp) << PGSHIFT; */          /* tablesize = (PDP_SIZE + UPAGES + nkptp[1]) << PGSHIFT; */
         addl    $(PDP_SIZE+UPAGES),%eax          addl    $(PDP_SIZE+UPAGES),%eax
 #ifdef PAE  #ifdef PAE
         incl    %eax            /* one more page for L3 */          incl    %eax            /* one more page for L3 */
Line 643  no_NOX:
Line 643  no_NOX:
 #endif  #endif
         movl    %eax,RELOC(tablesize)          movl    %eax,RELOC(tablesize)
   
         /* Ensure that nkptp covers BOOTSTRAP TABLES. */          /* Ensure that nkptp[1] covers BOOTSTRAP TABLES, ie:
            * (esi + tablesize) >> L2_SHIFT + 1 < nkptp[1] */
         addl    %esi,%eax          addl    %esi,%eax
         addl    $~L2_FRAME,%eax          addl    $~L2_FRAME,%eax
         shrl    $L2_SHIFT,%eax          shrl    $L2_SHIFT,%eax
Line 670  no_NOX:
Line 671  no_NOX:
          */           */
         leal    (PROC0_PTP1_OFF)(%esi),%ebx          leal    (PROC0_PTP1_OFF)(%esi),%ebx
   
         /* Skip the first MB. */          /* Skip the area below the kernel text. */
         movl    $(KERNTEXTOFF - KERNBASE),%ecx          movl    $(KERNTEXTOFF - KERNBASE),%ecx
         shrl    $PGSHIFT,%ecx          shrl    $PGSHIFT,%ecx
         fillkpt_blank          fillkpt_blank
Line 918  begin:
Line 919  begin:
         leal    (USPACE-FRAMESIZE)(%eax),%esp          leal    (USPACE-FRAMESIZE)(%eax),%esp
         xorl    %ebp,%ebp               /* mark end of frames */          xorl    %ebp,%ebp               /* mark end of frames */
   
         /* Set first_avail after the UAREA. */          /* Set first_avail after the DUMMY PAGE (see xen_locore). */
         addl    $USPACE,%esi          addl    $(USPACE+PAGE_SIZE),%esi
         subl    $KERNBASE,%esi          /* init386 wants a physical address */          subl    $KERNBASE,%esi          /* init386 wants a physical address */
   
 #ifdef PAE  #ifdef PAE

Legend:
Removed from v.1.141  
changed lines
  Added in v.1.144.2.1

CVSweb <webmaster@jp.NetBSD.org>