svn commit: r187523 - in stable/7/sys: . amd64/amd64 contrib/pf
dev/ath/ath_hal dev/cxgb
Alan Cox
alc at FreeBSD.org
Tue Jan 20 23:41:25 PST 2009
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);
More information about the svn-src-stable-7
mailing list