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)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to