svn commit: r287276 - head/sys/powerpc/booke

Justin Hibbits jhibbits at FreeBSD.org
Sat Aug 29 06:52:15 UTC 2015


Author: jhibbits
Date: Sat Aug 29 06:52:14 2015
New Revision: 287276
URL: https://svnweb.freebsd.org/changeset/base/287276

Log:
  The TLB1 TSIZE is a multiple of 4, not 2, so shift 2 bits, not 1.

Modified:
  head/sys/powerpc/booke/pmap.c

Modified: head/sys/powerpc/booke/pmap.c
==============================================================================
--- head/sys/powerpc/booke/pmap.c	Sat Aug 29 06:28:48 2015	(r287275)
+++ head/sys/powerpc/booke/pmap.c	Sat Aug 29 06:52:14 2015	(r287276)
@@ -2817,7 +2817,7 @@ mmu_booke_mapdev_attr(mmu_t mmu, vm_padd
 		sz = 1 << (ilog2(size) & ~1);
 		if (va % sz != 0) {
 			do {
-				sz >>= 1;
+				sz >>= 2;
 			} while (va % sz != 0);
 		}
 		if (bootverbose)


More information about the svn-src-head mailing list