diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-09-03 18:38:05 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-09-03 18:38:05 +0000 |
commit | c9748e800d1507240272f873bdcd18ccfc59f427 (patch) | |
tree | 41a9e9de2c21fc65b492a1a023bda3d7084f9366 | |
parent | ba432fced1a016cdf4326d4db1d99aa1857490d4 (diff) |
in pmap_enter4m use access_type to set the initial mod/ref flags on the pv
-rw-r--r-- | sys/arch/sparc/sparc/pmap.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/sparc/sparc/pmap.c b/sys/arch/sparc/sparc/pmap.c index 9949f6e1e5c..5cd1658f138 100644 --- a/sys/arch/sparc/sparc/pmap.c +++ b/sys/arch/sparc/sparc/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.34 1999/09/03 18:33:42 art Exp $ */ +/* $OpenBSD: pmap.c,v 1.35 1999/09/03 18:38:04 art Exp $ */ /* $NetBSD: pmap.c,v 1.118 1998/05/19 19:00:18 thorpej Exp $ */ /* @@ -5541,6 +5541,13 @@ pmap_enter4m(pm, va, pa, prot, wired, access_prot) else pmap_enu4m(pm, va, prot, wired, pv, pteproto); + if (pv) { + if (access_type & VM_PROT_WRITE) + pv->pv_flags |= PV_MOD4M; + if (access_type & VM_PROT_READ) + pv->pv_flags |= PV_REF4M; + } + setcontext4m(ctx); } |