Remove an unneeded trunc_page() in pmap_fault().

Reported by:	alc
MFC with:	r350004
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2019-07-29 20:31:28 +00:00
parent 918988576c
commit 96e90e5f14
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350422

View File

@ -5790,7 +5790,7 @@ pmap_fault(pmap_t pmap, uint64_t esr, uint64_t far)
(pmap_load(pte) & (ATTR_AP_RW_BIT | ATTR_SW_DBM)) ==
(ATTR_AP(ATTR_AP_RO) | ATTR_SW_DBM)) {
pmap_clear_bits(pte, ATTR_AP_RW_BIT);
pmap_invalidate_page(pmap, trunc_page(far));
pmap_invalidate_page(pmap, far);
rv = KERN_SUCCESS;
}
PMAP_UNLOCK(pmap);