1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

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 Turner 2017-08-22 17:38:06 +00:00
parent ce5dff88a9
commit 012faa32f9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322797

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