svn commit: r239379 - head/sys/ia64/ia64
Marcel Moolenaar
marcel at FreeBSD.org
Sat Aug 18 23:28:35 UTC 2012
Author: marcel
Date: Sat Aug 18 23:28:34 2012
New Revision: 239379
URL: http://svn.freebsd.org/changeset/base/239379
Log:
Use pmap_kextract(x) rather than pmap_extract(kernel_pmap, x). The
former knows about all the special mappings, like PBVM. The kernel
text and data are in the PBVM.
Modified:
head/sys/ia64/ia64/mem.c
Modified: head/sys/ia64/ia64/mem.c
==============================================================================
--- head/sys/ia64/ia64/mem.c Sat Aug 18 23:23:14 2012 (r239378)
+++ head/sys/ia64/ia64/mem.c Sat Aug 18 23:28:34 2012 (r239379)
@@ -129,7 +129,7 @@ kmemphys:
addr = trunc_page(v);
eaddr = round_page(v + c);
for (; addr < eaddr; addr += PAGE_SIZE) {
- if (pmap_extract(kernel_pmap, addr) == 0)
+ if (pmap_kextract(addr) == 0)
return (EFAULT);
}
if (!kernacc((caddr_t)v, c, (uio->uio_rw == UIO_READ)
More information about the svn-src-head
mailing list