svn commit: r339520 - head/sys/powerpc/aim

Justin Hibbits jhibbits at FreeBSD.org
Sun Oct 21 02:28:05 UTC 2018


Author: jhibbits
Date: Sun Oct 21 02:28:04 2018
New Revision: 339520
URL: https://svnweb.freebsd.org/changeset/base/339520

Log:
  powerpc64/pmap: Correct the logic for minidump KVA chunk
  
  r279252 inverted the logic in moea64_scan_init, such that instead of
  terminating when reaching a dead page, it terminates when reaching a live
  page, ostensibly preserving exactly one page of KVA.

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

Modified: head/sys/powerpc/aim/mmu_oea64.c
==============================================================================
--- head/sys/powerpc/aim/mmu_oea64.c	Sun Oct 21 02:25:56 2018	(r339519)
+++ head/sys/powerpc/aim/mmu_oea64.c	Sun Oct 21 02:28:04 2018	(r339520)
@@ -2882,7 +2882,7 @@ moea64_scan_init(mmu_t mmu)
 			if (va == kmi.buffer_sva)
 				break;
 			pvo = moea64_pvo_find_va(kernel_pmap, va & ~ADDR_POFF);
-			if (pvo != NULL && !(pvo->pvo_vaddr & PVO_DEAD))
+			if (pvo == NULL || (pvo->pvo_vaddr & PVO_DEAD))
 				break;
 			va += PAGE_SIZE;
 		}


More information about the svn-src-head mailing list