Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2011 15:48:13 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227627 - head/sys/powerpc/aim
Message-ID:  <201111171548.pAHFmDUl015617@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Thu Nov 17 15:48:12 2011
New Revision: 227627
URL: http://svn.freebsd.org/changeset/base/227627

Log:
  Add an extra invariant here which was useful on 64-bit CPUs.

Modified:
  head/sys/powerpc/aim/mmu_oea.c

Modified: head/sys/powerpc/aim/mmu_oea.c
==============================================================================
--- head/sys/powerpc/aim/mmu_oea.c	Thu Nov 17 15:46:37 2011	(r227626)
+++ head/sys/powerpc/aim/mmu_oea.c	Thu Nov 17 15:48:12 2011	(r227627)
@@ -1624,6 +1624,8 @@ moea_pinit(mmu_t mmu, pmap_t pmap)
 			hash &= 0xfffff & ~(VSID_NBPW - 1);
 			hash |= i;
 		}
+		KASSERT(!(moea_vsid_bitmap[n] & mask),
+		    ("Allocating in-use VSID group %#x\n", hash));
 		moea_vsid_bitmap[n] |= mask;
 		for (i = 0; i < 16; i++)
 			pmap->pm_sr[i] = VSID_MAKE(i, hash);



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