diff options
author | Thomas Moestl <tmm@FreeBSD.org> | 2002-04-13 20:09:06 +0000 |
---|---|---|
committer | Thomas Moestl <tmm@FreeBSD.org> | 2002-04-13 20:09:06 +0000 |
commit | 8db523989f5cf7d79242a90c8c4039408ac9d7bc (patch) | |
tree | 70408f371e1961c45ea45bc408d5fe0e966d7a08 /sys/kern | |
parent | ade4ded301002cd5bd4ff740b132d8dc14ffd0b2 (diff) | |
download | src-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.c | 3 |
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++) |