Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2018 15:49:12 +0000 (UTC)
From:      Mark Johnston <markj@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: r336765 - stable/11/sys/arm64/arm64
Message-ID:  <201807271549.w6RFnCsc031571@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Jul 27 15:49:12 2018
New Revision: 336765
URL: https://svnweb.freebsd.org/changeset/base/336765

Log:
  MFC r336556:
  Initialize the L3 page's wire count correctly after a L2 entry demotion.

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

Modified: stable/11/sys/arm64/arm64/pmap.c
==============================================================================
--- stable/11/sys/arm64/arm64/pmap.c	Fri Jul 27 15:46:34 2018	(r336764)
+++ stable/11/sys/arm64/arm64/pmap.c	Fri Jul 27 15:49:12 2018	(r336765)
@@ -4611,6 +4611,7 @@ pmap_demote_l2_locked(pmap_t pmap, pt_entry_t *l2, vm_
 	 * If the page table page is new, initialize it.
 	 */
 	if (ml3->wire_count == 1) {
+		ml3->wire_count = NL3PG;
 		for (i = 0; i < Ln_ENTRIES; i++) {
 			l3[i] = newl3 | phys;
 			phys += L3_SIZE;



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