Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Apr 2018 15:05:48 +0000 (UTC)
From:      "Jonathan T. Looney" <jtl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r332823 - stable/11/sys/amd64/amd64
Message-ID:  <201804201505.w3KF5mNM076608@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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