svn commit: r332823 - stable/11/sys/amd64/amd64

Jonathan T. Looney jtl at FreeBSD.org
Fri Apr 20 15:05:49 UTC 2018


Author: jtl
Date: Fri Apr 20 15:05:48 2018
New Revision: 332823
URL: https://svnweb.freebsd.org/changeset/base/332823

Log:
  MFC r329171:
    Mark the pages used for the initial page-table entries as wired. This
    makes them consistent with the way other page-table pages are allocated.
    It also provides the rest of the VM system a good clue that these pages
    are used.
  
  Sponsored by:	Netflix, Inc.

Modified:
  stable/11/sys/amd64/amd64/pmap.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/amd64/amd64/pmap.c
==============================================================================
--- stable/11/sys/amd64/amd64/pmap.c	Fri Apr 20 14:55:13 2018	(r332822)
+++ stable/11/sys/amd64/amd64/pmap.c	Fri Apr 20 15:05:48 2018	(r332823)
@@ -1272,7 +1272,9 @@ pmap_init(void)
 		    ("pmap_init: page table page is out of range"));
 		mpte->pindex = pmap_pde_pindex(KERNBASE) + i;
 		mpte->phys_addr = KPTphys + (i << PAGE_SHIFT);
+		mpte->wire_count = 1;
 	}
+	atomic_add_int(&vm_cnt.v_wire_count, nkpt);
 
 	/*
 	 * If the kernel is running on a virtual machine, then it must assume


More information about the svn-src-all mailing list