Author: andreast
Date: Sat Nov 23 18:52:14 2013
New Revision: 258503
URL: http://svnweb.freebsd.org/changeset/base/258503

Log:
  Limit the large page size to 16MB for now.
  
  MFC after:    1 week

Modified:
  head/sys/powerpc/pseries/mmu_phyp.c

Modified: head/sys/powerpc/pseries/mmu_phyp.c
==============================================================================
--- head/sys/powerpc/pseries/mmu_phyp.c Sat Nov 23 18:50:43 2013        
(r258502)
+++ head/sys/powerpc/pseries/mmu_phyp.c Sat Nov 23 18:52:14 2013        
(r258503)
@@ -165,6 +165,11 @@ mphyp_bootstrap(mmu_t mmup, vm_offset_t 
                                nptlp--;
                        }
                }
+
+               /* For now we allow shift only to be <= 0x18. */
+               if (shift >= 0x18)
+                   shift = 0x18;
+
                moea64_large_page_shift = shift;
                moea64_large_page_size = 1ULL << shift;
        }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to