MFC r260914:

In pmap_set_pte(), make sure to enforce ordering by inserting a memory fence.
This commit is contained in:
Marcel Moolenaar 2014-02-16 22:12:13 +00:00
parent 51e69d9039
commit 9cef742ef3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=262002

View File

@ -1318,6 +1318,8 @@ pmap_set_pte(struct ia64_lpte *pte, vm_offset_t va, vm_offset_t pa,
pte->itir = PAGE_SHIFT << 2;
ia64_mf();
pte->tag = ia64_ttag(va);
}
@ -1336,8 +1338,8 @@ pmap_remove_pte(pmap_t pmap, struct ia64_lpte *pte, vm_offset_t va,
* First remove from the VHPT.
*/
error = pmap_remove_vhpt(va);
if (error)
return (error);
KASSERT(error == 0, ("%s: pmap_remove_vhpt returned %d",
__func__, error));
pmap_invalidate_page(va);