diff options
Diffstat (limited to 'sys/uvm/uvm_loan.c')
-rw-r--r-- | sys/uvm/uvm_loan.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/uvm/uvm_loan.c b/sys/uvm/uvm_loan.c index 6ec2a96d307..64fff56afad 100644 --- a/sys/uvm/uvm_loan.c +++ b/sys/uvm/uvm_loan.c @@ -1,5 +1,5 @@ -/* $OpenBSD: uvm_loan.c,v 1.6 2001/03/08 15:21:37 smart Exp $ */ -/* $NetBSD: uvm_loan.c,v 1.18 1999/07/22 22:58:38 thorpej Exp $ */ +/* $OpenBSD: uvm_loan.c,v 1.7 2001/07/18 10:47:05 art Exp $ */ +/* $NetBSD: uvm_loan.c,v 1.19 1999/09/12 01:17:36 chs Exp $ */ /* * @@ -336,7 +336,7 @@ uvm_loananon(ufi, output, flags, anon) pg = anon->u.an_page; if (pg && (pg->pqflags & PQ_ANON) != 0 && anon->an_ref == 1) /* read protect it */ - pmap_page_protect(PMAP_PGARG(pg), VM_PROT_READ); + pmap_page_protect(pg, VM_PROT_READ); anon->an_ref++; **output = anon; *output = (*output) + 1; @@ -381,7 +381,7 @@ uvm_loananon(ufi, output, flags, anon) pg = anon->u.an_page; uvm_lock_pageq(); if (pg->loan_count == 0) - pmap_page_protect(PMAP_PGARG(pg), VM_PROT_READ); + pmap_page_protect(pg, VM_PROT_READ); pg->loan_count++; uvm_pagewire(pg); /* always wire it */ uvm_unlock_pageq(); @@ -533,7 +533,7 @@ uvm_loanuobj(ufi, output, flags, va) if ((flags & UVM_LOAN_TOANON) == 0) { /* loan to wired-kernel page? */ uvm_lock_pageq(); if (pg->loan_count == 0) - pmap_page_protect(PMAP_PGARG(pg), VM_PROT_READ); + pmap_page_protect(pg, VM_PROT_READ); pg->loan_count++; uvm_pagewire(pg); uvm_unlock_pageq(); @@ -587,7 +587,7 @@ uvm_loanuobj(ufi, output, flags, va) pg->uanon = anon; uvm_lock_pageq(); if (pg->loan_count == 0) - pmap_page_protect(PMAP_PGARG(pg), VM_PROT_READ); + pmap_page_protect(pg, VM_PROT_READ); pg->loan_count++; uvm_pageactivate(pg); uvm_unlock_pageq(); @@ -751,7 +751,7 @@ uvm_unloanpage(ploans, npages) panic("uvm_unloanpage: page %p unowned but PG_BUSY!", pg); /* be safe */ - pmap_page_protect(PMAP_PGARG(pg), VM_PROT_NONE); + pmap_page_protect(pg, VM_PROT_NONE); uvm_pagefree(pg); /* pageq locked above */ } |