Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jan 2009 07:41:24 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r187523 - in stable/7/sys: . amd64/amd64 contrib/pf dev/ath/ath_hal dev/cxgb
Message-ID:  <200901210741.n0L7fODh070343@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Wed Jan 21 07:41:24 2009
New Revision: 187523
URL: http://svn.freebsd.org/changeset/base/187523

Log:
  MFC rev 175325
    Make pmap_is_prefaultable() more TLB friendly.  Specifically, make it use
    the kernel's direct map instead of the pmap's recursive mapping to access
    the lowest level in the page table.

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/amd64/amd64/pmap.c
  stable/7/sys/contrib/pf/   (props changed)
  stable/7/sys/dev/ath/ath_hal/   (props changed)
  stable/7/sys/dev/cxgb/   (props changed)

Modified: stable/7/sys/amd64/amd64/pmap.c
==============================================================================
--- stable/7/sys/amd64/amd64/pmap.c	Wed Jan 21 07:33:18 2009	(r187522)
+++ stable/7/sys/amd64/amd64/pmap.c	Wed Jan 21 07:41:24 2009	(r187523)
@@ -3091,7 +3091,7 @@ pmap_is_prefaultable(pmap_t pmap, vm_off
 	PMAP_LOCK(pmap);
 	pde = pmap_pde(pmap, addr);
 	if (pde != NULL && (*pde & PG_V)) {
-		pte = vtopte(addr);
+		pte = pmap_pde_to_pte(pde, addr);
 		rv = (*pte & PG_V) == 0;
 	}
 	PMAP_UNLOCK(pmap);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901210741.n0L7fODh070343>