diff options
author | alc <alc@FreeBSD.org> | 2003-09-12 07:07:49 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-09-12 07:07:49 +0000 |
commit | 76fcb264a0e0f5a09371c6617c166472bd775658 (patch) | |
tree | 5f4a5020e45c74f9697b892acbfe9e8f748c0816 /sys/alpha | |
parent | 60909145e3ca1c6c165667bea0e781fb1526585d (diff) | |
download | FreeBSD-src-76fcb264a0e0f5a09371c6617c166472bd775658.zip FreeBSD-src-76fcb264a0e0f5a09371c6617c166472bd775658.tar.gz |
Add a new parameter to pmap_extract_and_hold() that is needed to eliminate
Giant from vmapbuf().
Idea from: tegge
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/pmap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/alpha/alpha/pmap.c b/sys/alpha/alpha/pmap.c index a2f5a50..82ab789 100644 --- a/sys/alpha/alpha/pmap.c +++ b/sys/alpha/alpha/pmap.c @@ -815,10 +815,11 @@ pmap_extract(pmap, va) * Routine: pmap_extract_and_hold * Function: * Atomically extract and hold the physical page - * with the given pmap and virtual address. + * with the given 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; |