aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorThomas Moestl <tmm@FreeBSD.org>2002-04-13 20:09:06 +0000
committerThomas Moestl <tmm@FreeBSD.org>2002-04-13 20:09:06 +0000
commit8db523989f5cf7d79242a90c8c4039408ac9d7bc (patch)
tree70408f371e1961c45ea45bc408d5fe0e966d7a08 /sys/kern
parentade4ded301002cd5bd4ff740b132d8dc14ffd0b2 (diff)
downloadsrc-8db523989f5cf7d79242a90c8c4039408ac9d7bc.tar.gz
src-8db523989f5cf7d79242a90c8c4039408ac9d7bc.zip
Use pmap_extract() instead of pmap_kextract() to retrieve the physical
address associated with a user virtual address in pipe_build_write_buffer(). Reviewed by: alc
Notes
Notes: svn path=/head/; revision=94608
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/sys_pipe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index 8699ca27757e..c671c9434086 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -616,7 +616,8 @@ pipe_build_write_buffer(wpipe, uio)
vm_page_t m;
if (vm_fault_quick((caddr_t)addr, VM_PROT_READ) < 0 ||
- (paddr = pmap_kextract(addr)) == 0) {
+ (paddr = pmap_extract(vmspace_pmap(curproc->p_vmspace),
+ addr)) == 0) {
int j;
for (j = 0; j < i; j++)