svn commit: r322797 - head/sys/arm64/arm64

Andrew Turner andrew at FreeBSD.org
Tue Aug 22 17:38:07 UTC 2017


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);
 }
 
 /*


More information about the svn-src-all mailing list