Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Aug 2015 06:52:15 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r287276 - head/sys/powerpc/booke
Message-ID:  <201508290652.t7T6qFE1045539@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508290652.t7T6qFE1045539>