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
This commit is contained in:
andrew 2017-08-22 17:38:06 +00:00
parent 57db9612f0
commit 9d83961b96

View File

@ -2620,13 +2620,10 @@ pmap_protect(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, vm_prot_t prot)
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);
}
/*