[PC-BSD Commits] r2500 - freebsd-projects/nvidia-work/split_large_pages/diff_on_HEAD

svn at pcbsd.org svn at pcbsd.org
Thu Jul 31 03:23:39 PDT 2008


Author: magesh
Date: 2008-07-31 03:23:38 -0700 (Thu, 31 Jul 2008)
New Revision: 2500

Modified:
   freebsd-projects/nvidia-work/split_large_pages/diff_on_HEAD/pmap.c_diff_on_v1.638.patch
Log:
Changed the lines that increment 'tmpva' for 2MB pages to a better understandable form.


Modified: freebsd-projects/nvidia-work/split_large_pages/diff_on_HEAD/pmap.c_diff_on_v1.638.patch
===================================================================
--- freebsd-projects/nvidia-work/split_large_pages/diff_on_HEAD/pmap.c_diff_on_v1.638.patch	2008-07-31 04:54:02 UTC (rev 2499)
+++ freebsd-projects/nvidia-work/split_large_pages/diff_on_HEAD/pmap.c_diff_on_v1.638.patch	2008-07-31 10:23:38 UTC (rev 2500)
@@ -1,5 +1,5 @@
 --- /sys/amd64/amd64/pmap.c.orig	2008-07-31 09:00:26.000000000 +0530
-+++ /sys/amd64/amd64/pmap.c	2008-07-31 10:17:23.000000000 +0530
++++ /sys/amd64/amd64/pmap.c	2008-07-31 15:44:27.000000000 +0530
 @@ -4250,13 +4250,10 @@ pmap_clear_reference(vm_page_t m)
  
  /* Adjust the cache mode for a 4KB page mapped via a PTE. */
@@ -105,7 +105,7 @@
 +			if (cache_bits_pde < 0)
 +				cache_bits_pde = pmap_cache_bits(mode, 1);
 +			if ((*pde & PG_PDE_CACHE_BITS) == cache_bits_pde) {
-+				tmpva = (tmpva + NBPDR) & ~PDRMASK;
++				tmpva = trunc_2mpage(tmpva) + NBPDR;
 +				continue;
 +			}
 +			/*
@@ -133,7 +133,7 @@
 +				if (!changed)
 +					changed = TRUE;
 +			}
-+			tmpva = (tmpva + NBPDR) & ~PDRMASK;
++			tmpva = trunc_2mpage(tmpva) + NBPDR;
  		} else {
 -			pmap_pte_attr(tmpva, mode);
 +			if (cache_bits_pte < 0)



More information about the Commits mailing list