summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2015-03-13 00:08:58 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2015-03-13 00:08:58 +0000
commit2c2f3ffe1dfe97338a30c938750b7a149d3f926f (patch)
tree6cd889eb287bebf166c40326ae25443ac42f4cd5 /sys/powerpc/aim
parent56096cc1a685191104ea3dc84d81f1e239722938 (diff)
downloadFreeBSD-src-2c2f3ffe1dfe97338a30c938750b7a149d3f926f.zip
FreeBSD-src-2c2f3ffe1dfe97338a30c938750b7a149d3f926f.tar.gz
Deallocate any leftover page table entries in the LPAR at boot. This
prevents contamination from a previous kernel (e.g. after shutdown -r).
Diffstat (limited to 'sys/powerpc/aim')
-rw-r--r--sys/powerpc/aim/mmu_oea64.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/powerpc/aim/mmu_oea64.c b/sys/powerpc/aim/mmu_oea64.c
index 6b3add7..41c830e 100644
--- a/sys/powerpc/aim/mmu_oea64.c
+++ b/sys/powerpc/aim/mmu_oea64.c
@@ -1898,6 +1898,8 @@ moea64_get_unique_vsid(void) {
hash &= VSID_HASHMASK & ~(VSID_NBPW - 1);
hash |= i;
}
+ if (hash == VSID_VRMA) /* also special, avoid this too */
+ continue;
KASSERT(!(moea64_vsid_bitmap[n] & mask),
("Allocating in-use VSID %#zx\n", hash));
moea64_vsid_bitmap[n] |= mask;
OpenPOWER on IntegriCloud