svn commit: r258503 - head/sys/powerpc/pseries

Andreas Tobler andreast at FreeBSD.org
Sat Nov 23 18:52:15 UTC 2013


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;
 	}


More information about the svn-src-head mailing list