Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2018 17:27:50 +0000 (UTC)
From:      "Jonathan T. Looney" <jtl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329171 - head/sys/amd64/amd64
Message-ID:  <201802121727.w1CHRo1I063772@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jtl
Date: Mon Feb 12 17:27:50 2018
New Revision: 329171
URL: https://svnweb.freebsd.org/changeset/base/329171

Log:
  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.
  
  Reviewed by:	alc, kib, markj
  Sponsored by:	Netflix
  Differential Revision:	https://reviews.freebsd.org/D14269

Modified:
  head/sys/amd64/amd64/pmap.c

Modified: head/sys/amd64/amd64/pmap.c
==============================================================================
--- head/sys/amd64/amd64/pmap.c	Mon Feb 12 16:25:56 2018	(r329170)
+++ head/sys/amd64/amd64/pmap.c	Mon Feb 12 17:27:50 2018	(r329171)
@@ -1244,7 +1244,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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802121727.w1CHRo1I063772>