Remove an unneeded trunc_page() in pmap_fault().
Reported by: alc MFC with: r350004 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
18afe5991f
commit
468883bcb0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user