arm64: remove an unneeded test from pmap_clear_modify()
The page table entry for a 4KB page mapping must be valid if a PV entry for the mapping exists, so there is no point in testing each page table entry's validity when iterating over a PV list. Reviewed by: kib, markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30875
This commit is contained in:
parent
f13da24715
commit
62ea198e95
@ -5664,8 +5664,7 @@ restart:
|
||||
l2 = pmap_l2(pmap, pv->pv_va);
|
||||
l3 = pmap_l2_to_l3(l2, pv->pv_va);
|
||||
oldl3 = pmap_load(l3);
|
||||
if (pmap_l3_valid(oldl3) &&
|
||||
(oldl3 & (ATTR_S1_AP_RW_BIT | ATTR_SW_DBM)) == ATTR_SW_DBM){
|
||||
if ((oldl3 & (ATTR_S1_AP_RW_BIT | ATTR_SW_DBM)) == ATTR_SW_DBM){
|
||||
pmap_set_bits(l3, ATTR_S1_AP(ATTR_S1_AP_RO));
|
||||
pmap_invalidate_page(pmap, pv->pv_va);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user