diff options
author | alc <alc@FreeBSD.org> | 2006-07-20 23:26:22 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2006-07-20 23:26:22 +0000 |
commit | 51bab356f57dc9ab730b9fc77fc11ee8039d2a02 (patch) | |
tree | d22cbca0ef102205e0418494be9a2313c841098f /sys/arm | |
parent | b3351ab1a0ddd1e0b51308fd63a9748d58491c0c (diff) | |
download | FreeBSD-src-51bab356f57dc9ab730b9fc77fc11ee8039d2a02.zip FreeBSD-src-51bab356f57dc9ab730b9fc77fc11ee8039d2a02.tar.gz |
Implement pmap_clear_write().
Discussed with: cognet@
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/arm/pmap.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c index 6b23aa4..9d8f4af 100644 --- a/sys/arm/arm/pmap.c +++ b/sys/arm/arm/pmap.c @@ -4461,6 +4461,21 @@ pmap_clear_reference(vm_page_t m) /* + * Clear the write and modified bits in each of the given page's mappings. + */ +void +pmap_clear_write(vm_page_t m) +{ + + if (m->md.pvh_attrs & PVF_WRITE) + pmap_clearbit(m, PVF_WRITE); + else + KASSERT((m->flags & PG_WRITEABLE) == 0, + ("pmap_clear_write: page %p has PG_WRITEABLE set", m)); +} + + +/* * perform the pmap work for mincore */ int |