summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2007-02-02 04:57:11 +0000
committerkmacy <kmacy@FreeBSD.org>2007-02-02 04:57:11 +0000
commitefb054426a289fed831fa455155054250177ff35 (patch)
treef57217d275db52f8e7aec095f02408de75158413
parentfe499355a44bfeeb93443815c8a15c52d4d0d112 (diff)
downloadFreeBSD-src-efb054426a289fed831fa455155054250177ff35.zip
FreeBSD-src-efb054426a289fed831fa455155054250177ff35.tar.gz
match against both dirty and writeable for marking page dirty
-rw-r--r--sys/sun4v/sun4v/tte.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sun4v/sun4v/tte.c b/sys/sun4v/sun4v/tte.c
index 4fb3d3e..9976336 100644
--- a/sys/sun4v/sun4v/tte.c
+++ b/sys/sun4v/sun4v/tte.c
@@ -74,7 +74,7 @@ tte_clear_phys_bit(vm_page_t m, uint64_t flags)
PMAP_LOCK(pmap);
otte_data = tte_hash_clear_bits(pmap->pm_hash, pv->pv_va, flags);
if ((matchbits = (otte_data & active_flags)) != 0) {
- if (matchbits == VTD_W)
+ if ((otte_data & (VTD_SW_W|VTD_W)) == (VTD_SW_W|VTD_W))
vm_page_dirty(m);
pmap_invalidate_page(pmap, pv->pv_va, TRUE);
}
OpenPOWER on IntegriCloud