Changeset 2500 for freebsd-projects

Show
Ignore:
Timestamp:
07/31/08 03:23:38 (4 months ago)
Author:
magesh
Message:

Changed the lines that increment 'tmpva' for 2MB pages to a better understandable form.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • freebsd-projects/nvidia-work/split_large_pages/diff_on_HEAD/pmap.c_diff_on_v1.638.patch

    r2499 r2500  
    11--- /sys/amd64/amd64/pmap.c.orig        2008-07-31 09:00:26.000000000 +0530 
    2 +++ /sys/amd64/amd64/pmap.c     2008-07-31 10:17:23.000000000 +0530 
     2+++ /sys/amd64/amd64/pmap.c     2008-07-31 15:44:27.000000000 +0530 
    33@@ -4250,13 +4250,10 @@ pmap_clear_reference(vm_page_t m) 
    44  
     
    106106+                               cache_bits_pde = pmap_cache_bits(mode, 1); 
    107107+                       if ((*pde & PG_PDE_CACHE_BITS) == cache_bits_pde) { 
    108 +                               tmpva = (tmpva + NBPDR) & ~PDRMASK; 
     108+                               tmpva = trunc_2mpage(tmpva) + NBPDR; 
    109109+                               continue; 
    110110+                       } 
     
    134134+                                       changed = TRUE; 
    135135+                       } 
    136 +                       tmpva = (tmpva + NBPDR) & ~PDRMASK; 
     136+                       tmpva = trunc_2mpage(tmpva) + NBPDR; 
    137137                } else { 
    138138-                       pmap_pte_attr(tmpva, mode);