Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Sep 2018 16:19:22 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r338889 - stable/11/sys/amd64/amd64
Message-ID:  <201809221619.w8MGJMxT094370@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Sep 22 16:19:21 2018
New Revision: 338889
URL: https://svnweb.freebsd.org/changeset/base/338889

Log:
  MFC r338801:
  amd64 pmap: remove tautological assert.

Modified:
  stable/11/sys/amd64/amd64/pmap.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/amd64/amd64/pmap.c
==============================================================================
--- stable/11/sys/amd64/amd64/pmap.c	Sat Sep 22 15:32:53 2018	(r338888)
+++ stable/11/sys/amd64/amd64/pmap.c	Sat Sep 22 16:19:21 2018	(r338889)
@@ -7409,8 +7409,7 @@ pmap_activate_sw(struct thread *td)
 	cr3 = rcr3();
 	if (pmap_pcid_enabled) {
 		cached = pmap_pcid_alloc(pmap, cpuid);
-		KASSERT(pmap->pm_pcids[cpuid].pm_pcid >= 0 &&
-		    pmap->pm_pcids[cpuid].pm_pcid < PMAP_PCID_OVERMAX,
+		KASSERT(pmap->pm_pcids[cpuid].pm_pcid < PMAP_PCID_OVERMAX,
 		    ("pmap %p cpu %d pcid %#x", pmap, cpuid,
 		    pmap->pm_pcids[cpuid].pm_pcid));
 		KASSERT(pmap->pm_pcids[cpuid].pm_pcid != PMAP_PCID_KERN ||



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