Return 1 from pmap_protect_tte() instead of 0. When used with

tsb_foreach(), 0 signals to terminate the tsb traversal, so when
tsb_foreach() was used in pmap_protect() (which only happens when
the area to be protected is larger than PMAP_TSB_THRESH = 16MB), only
the first tsb entry in the specified range would be protected.

Reported by:	Andrew Belashov <bel@orel.ru>
This commit is contained in:
Thomas Moestl 2003-07-30 16:27:51 +00:00
parent a329ebca91
commit 416c84a212

View File

@ -1161,7 +1161,7 @@ pmap_protect_tte(struct pmap *pm, struct pmap *pm2, struct tte *tp,
if ((data & TD_W) != 0 && pmap_track_modified(pm, va))
vm_page_dirty(m);
}
return (0);
return (1);
}
/*