From 76fcb264a0e0f5a09371c6617c166472bd775658 Mon Sep 17 00:00:00 2001 From: alc Date: Fri, 12 Sep 2003 07:07:49 +0000 Subject: Add a new parameter to pmap_extract_and_hold() that is needed to eliminate Giant from vmapbuf(). Idea from: tegge --- sys/sparc64/sparc64/pmap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/sparc64') diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c index f532152..81dd685 100644 --- a/sys/sparc64/sparc64/pmap.c +++ b/sys/sparc64/sparc64/pmap.c @@ -622,10 +622,11 @@ pmap_extract(pmap_t pm, vm_offset_t va) /* * Atomically extract and hold the physical page with the given - * pmap and virtual address pair. + * pmap and virtual address pair if that mapping permits the given + * protection. */ vm_page_t -pmap_extract_and_hold(pmap_t pmap, vm_offset_t va) +pmap_extract_and_hold(pmap_t pmap, vm_offset_t va, vm_prot_t prot) { vm_paddr_t pa; vm_page_t m; -- cgit v1.1