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

Andreas Tobler andreast at FreeBSD.org
Thu Oct 31 20:42:48 UTC 2013


Author: andreast
Date: Thu Oct 31 20:42:47 2013
New Revision: 257473
URL: http://svnweb.freebsd.org/changeset/base/257473

Log:
  Ouch, do the shift properly. An uin64_t needs the right postfix when shifting.

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

Modified: head/sys/powerpc/pseries/mmu_phyp.c
==============================================================================
--- head/sys/powerpc/pseries/mmu_phyp.c	Thu Oct 31 20:33:21 2013	(r257472)
+++ head/sys/powerpc/pseries/mmu_phyp.c	Thu Oct 31 20:42:47 2013	(r257473)
@@ -166,7 +166,7 @@ mphyp_bootstrap(mmu_t mmup, vm_offset_t 
 			}
 		}
 		moea64_large_page_shift = shift;
-		moea64_large_page_size = 1 << shift;
+		moea64_large_page_size = 1ULL << shift;
 	}
 
 	moea64_mid_bootstrap(mmup, kernelstart, kernelend);


More information about the svn-src-head mailing list