Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2017 17:38:06 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322797 - head/sys/arm64/arm64
Message-ID:  <201708221738.v7MHc6UH017332@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Tue Aug 22 17:38:06 2017
New Revision: 322797
URL: https://svnweb.freebsd.org/changeset/base/322797

Log:
  Fix a bug in pmap_protect where we invalidate the wrong page. With this we
  can now remove an unneeded call to invalidate all entries.
  
  MFC after:	1 week
  Sponsored by:	DARPA, AFRL

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

Modified: head/sys/arm64/arm64/pmap.c
==============================================================================
--- head/sys/arm64/arm64/pmap.c	Tue Aug 22 17:23:29 2017	(r322796)
+++ head/sys/arm64/arm64/pmap.c	Tue Aug 22 17:38:06 2017	(r322797)
@@ -2620,13 +2620,10 @@ pmap_protect(pmap_t pmap, vm_offset_t sva, vm_offset_t
 
 			pmap_set(l3p, nbits);
 			/* XXX: Use pmap_invalidate_range */
-			pmap_invalidate_page(pmap, va);
+			pmap_invalidate_page(pmap, sva);
 		}
 	}
 	PMAP_UNLOCK(pmap);
-
-	/* TODO: Only invalidate entries we are touching */
-	pmap_invalidate_all(pmap);
 }
 
 /*



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