From nobody Fri Jan 20 03:23:58 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NylG73THKz30vrw; Fri, 20 Jan 2023 03:23:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NylG70gD4z3pF3; Fri, 20 Jan 2023 03:23:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674185039; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pahgU0hMgRco8aZRhDyzNnu8U4gcQuPJml38c1cbUx4=; b=sr7U0crWJXQdR1yHSKy17LJnrfO3PKqedrek4SLrc7OBtDQRfLVlK4ZwZCsbqUrCxP5pWX ySO5h2LEVU6GDr5te3+lOI4yjt606RetqhBHmnMqDUdWQn0wLNxfC8UZHwAHGyEVjlsJtD CPKdy0g7hE2f03q+zVzks25gQgfpQ5ZXtHIwxgLKPyCN4AJNE5O7sydELv+Br4UlZt/30B YgfG/j9icD+TZem6vh5OzU2Q93Oxa/2EBfmncSi6LUGtbhHiA0v0l+47JZ33te8ihBlYXi 9NUJqC/ad/FsECEK1eMaGwy6zCuHJtegFdGFRYPiO3PTRJ3XWrOtKASjeIz/7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674185039; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pahgU0hMgRco8aZRhDyzNnu8U4gcQuPJml38c1cbUx4=; b=rzsDSVJ+hIDPMTUf02amt/slXQK6sFevZD/F1Bw32/FMkvFYKbwch5Tri+2MFhYkd6irnb I8mWCl3aKcFx/0J0HnBo19zxMMiPfozm5h5RnCxCpWQThnnJcgSGU0xOZKiMq9IDkTeOmP 59jd1TTj5Fd/BIeTfFmF1ACDkTR/wtJoMZU3bPx067meT13/i8RYPLeLAtDOtvUuSYkfFY CbLf9bjx2O0ECAVP6Q+bqpkE9YYEXQj4EsLr8j/DX2Cz6BWOKhANcN2pvVmkiaJpam65g5 JOKzm4eNkChJRyK770+vG4+417r43zPlc3J4cMA3jWs/22NyCTMCAIOSz2n/Mw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674185039; a=rsa-sha256; cv=none; b=ZK7liFZ13UjVUx1F2518rJ1zGL3xHL3cPazohSjxHqrQ3Ky6kaiVeMHyRz+VKrnak2wY8v vjjl8AXHze6l9T14WCpeUwgAc/gkAOXQTNQ3dOfxY12M0d87gwnUhk68Di4gYLXQjZuwHV yjxjUCeGjrHN9F1Jk4p61WRBYz+pMjGO3eUYMkOMetHE7LJobdr2TCtA0h12aGjWEKAdm+ uyNxavwI3MQXV0WuDljSSSxOckga8fjTIbdxFQF+6+qMjA6SvzeAKggD6bUzNVutKuSjDF 7x2J2MKfFky0XlV6ZgPSyNQFL7Vbqh1Mad6d5TadgH9PCdelQgIaBZxVq9SWcg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NylG66v1MzFyv; Fri, 20 Jan 2023 03:23:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30K3NwMA042902; Fri, 20 Jan 2023 03:23:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30K3NwZ2042901; Fri, 20 Jan 2023 03:23:58 GMT (envelope-from git) Date: Fri, 20 Jan 2023 03:23:58 GMT Message-Id: <202301200323.30K3NwZ2042901@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 2e6132536f70 - stable/13 - amd64 pmap.h: make it easier to use the header for other consumers List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 2e6132536f703a56648def0b9007c1506dccd9cd Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=2e6132536f703a56648def0b9007c1506dccd9cd commit 2e6132536f703a56648def0b9007c1506dccd9cd Author: Konstantin Belousov AuthorDate: 2023-01-04 10:31:16 +0000 Commit: Konstantin Belousov CommitDate: 2023-01-20 03:22:17 +0000 amd64 pmap.h: make it easier to use the header for other consumers Tested by: pho (cherry picked from commit ad97b9bbfccdb36f17788033903b1dbf508fcb96) --- sys/amd64/include/pmap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index 7b86f9e139e1..0faee81a67c5 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -548,6 +548,7 @@ pmap_invalidate_cpu_mask(pmap_t pmap) return (&pmap->pm_active); } +#if defined(_SYS_PCPU_H_) && defined(_MACHINE_CPUFUNC_H_) /* * It seems that AlderLake+ small cores have some microarchitectural * bug, which results in the INVLPG instruction failing to flush all @@ -565,6 +566,7 @@ pmap_invlpg(pmap_t pmap, vm_offset_t va) invlpg(va); } } +#endif /* sys/pcpu.h && machine/cpufunc.h */ #endif /* _KERNEL */