diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-07-18 10:47:06 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-07-18 10:47:06 +0000 |
commit | 7014e9bdb5c2bbd8611c221808ec547e916bbb79 (patch) | |
tree | 696ce0ce037cffc3cf643967ca0d7b194de7df7a /sys/uvm/uvm_vnode.c | |
parent | 33fbe5eea52c9938f6f888b886db7cbe2583b9d3 (diff) |
Get rid of the PMAP_NEW option by making it mandatory for all archs.
The archs that didn't have a proper PMAP_NEW now have a dummy implementation
with wrappers around the old functions.
Diffstat (limited to 'sys/uvm/uvm_vnode.c')
-rw-r--r-- | sys/uvm/uvm_vnode.c | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/sys/uvm/uvm_vnode.c b/sys/uvm/uvm_vnode.c index 12327f97836..9d035720307 100644 --- a/sys/uvm/uvm_vnode.c +++ b/sys/uvm/uvm_vnode.c @@ -1,5 +1,5 @@ -/* $OpenBSD: uvm_vnode.c,v 1.13 2001/06/23 19:24:34 smart Exp $ */ -/* $NetBSD: uvm_vnode.c,v 1.25 1999/07/22 22:58:39 thorpej Exp $ */ +/* $OpenBSD: uvm_vnode.c,v 1.14 2001/07/18 10:47:05 art Exp $ */ +/* $NetBSD: uvm_vnode.c,v 1.26 1999/09/12 01:17:42 chs Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -698,7 +698,7 @@ uvn_releasepg(pg, nextpgp) /* * dispose of the page [caller handles PG_WANTED] */ - pmap_page_protect(PMAP_PGARG(pg), VM_PROT_NONE); + pmap_page_protect(pg, VM_PROT_NONE); uvm_lock_pageq(); if (nextpgp) *nextpgp = pg->pageq.tqe_next; /* next page for daemon */ @@ -973,9 +973,9 @@ uvn_flush(uobj, start, stop, flags) if ((pp->flags & PG_CLEAN) != 0 && (flags & PGO_FREE) != 0 && (pp->pqflags & PQ_ACTIVE) != 0) - pmap_page_protect(PMAP_PGARG(pp), VM_PROT_NONE); + pmap_page_protect(pp, VM_PROT_NONE); if ((pp->flags & PG_CLEAN) != 0 && - pmap_is_modified(PMAP_PGARG(pp))) + pmap_is_modified(pp)) pp->flags &= ~(PG_CLEAN); pp->flags |= PG_CLEANCHK; /* update "hint" */ @@ -998,8 +998,7 @@ uvn_flush(uobj, start, stop, flags) if (flags & PGO_DEACTIVATE) { if ((pp->pqflags & PQ_INACTIVE) == 0 && pp->wire_count == 0) { - pmap_page_protect(PMAP_PGARG(pp), - VM_PROT_NONE); + pmap_page_protect(pp, VM_PROT_NONE); uvm_pagedeactivate(pp); } @@ -1008,8 +1007,7 @@ uvn_flush(uobj, start, stop, flags) /* release busy pages */ pp->flags |= PG_RELEASED; } else { - pmap_page_protect(PMAP_PGARG(pp), - VM_PROT_NONE); + pmap_page_protect(pp, VM_PROT_NONE); /* removed page from object */ uvm_pagefree(pp); } @@ -1029,7 +1027,7 @@ uvn_flush(uobj, start, stop, flags) pp->flags |= PG_BUSY; /* we 'own' page now */ UVM_PAGE_OWN(pp, "uvn_flush"); - pmap_page_protect(PMAP_PGARG(pp), VM_PROT_READ); + pmap_page_protect(pp, VM_PROT_READ); pp_version = pp->version; ReTry: ppsp = pps; @@ -1178,8 +1176,7 @@ ReTry: } else { ptmp->flags |= (PG_CLEAN|PG_CLEANCHK); if ((flags & PGO_FREE) == 0) - pmap_clear_modify( - PMAP_PGARG(ptmp)); + pmap_clear_modify(ptmp); } } @@ -1190,8 +1187,7 @@ ReTry: if (flags & PGO_DEACTIVATE) { if ((pp->pqflags & PQ_INACTIVE) == 0 && pp->wire_count == 0) { - pmap_page_protect(PMAP_PGARG(ptmp), - VM_PROT_NONE); + pmap_page_protect(ptmp, VM_PROT_NONE); uvm_pagedeactivate(ptmp); } @@ -1211,8 +1207,7 @@ ReTry: "lost!\n"); retval = FALSE; } - pmap_page_protect(PMAP_PGARG(ptmp), - VM_PROT_NONE); + pmap_page_protect(ptmp, VM_PROT_NONE); uvm_pagefree(ptmp); } } @@ -1544,7 +1539,7 @@ uvn_get(uobj, offset, pps, npagesp, centeridx, access_type, advice, flags) */ ptmp->flags &= ~PG_FAKE; /* data is valid ... */ - pmap_clear_modify(PMAP_PGARG(ptmp)); /* ... and clean */ + pmap_clear_modify(ptmp); /* ... and clean */ pps[lcv] = ptmp; } /* lcv loop */ |