Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Oct 2018 02:28:04 +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: r339520 - head/sys/powerpc/aim
Message-ID:  <201810210228.w9L2S4fd090439@repo.freebsd.org>

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



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