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
This commit is contained in:
Thomas Moestl 2002-04-13 20:09:06 +00:00
parent ade4ded301
commit 8db523989f

View File

@ -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++)