Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 May 2018 11:40:35 +0000 (UTC)
From:      Konstantin Belousov <kib@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: r333528 - stable/11/sys/amd64/amd64
Message-ID:  <201805121140.w4CBeZpt009350@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat May 12 11:40:34 2018
New Revision: 333528
URL: https://svnweb.freebsd.org/changeset/base/333528

Log:
  MFC r332504:
  Set PG_G global mapping bit on the trampoline ptes.
  
  Approved by:	re (marius)

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	Sat May 12 11:18:14 2018	(r333527)
+++ stable/11/sys/amd64/amd64/pmap.c	Sat May 12 11:40:34 2018	(r333528)
@@ -7968,7 +7968,7 @@ pmap_pti_add_kva_locked(vm_offset_t sva, vm_offset_t e
 	for (; sva < eva; sva += PAGE_SIZE) {
 		pte = pmap_pti_pte(sva, &unwire_pde);
 		pa = pmap_kextract(sva);
-		ptev = pa | X86_PG_RW | X86_PG_V | X86_PG_A |
+		ptev = pa | X86_PG_RW | X86_PG_V | X86_PG_A | X86_PG_G |
 		    (exec ? 0 : pg_nx) | pmap_cache_bits(kernel_pmap,
 		    VM_MEMATTR_DEFAULT, FALSE);
 		if (*pte == 0) {



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