From nobody Thu Jan 05 23:31:37 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 4Np2mT4X1Gz2qnYB; Thu, 5 Jan 2023 23:31:37 +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 4Np2mT2cJgz3vq8; Thu, 5 Jan 2023 23:31:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672961497; 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=lmNfHSZas4H9weGgnFGvQHp+x6VYGdGAKDIPmNAOFrU=; b=LKYYjcB7UlWi6GD0W3FJBBRQ7lAuXgXcDB8M9ijJ+kIWbwpXQ11sM1rO+OveBaRA2KQotg 7hUXmzurWMxrjjHZYoUhuKI5xpvb64LrNBx3RoMxrht6SHjR3GuPDEqj44HR7JDedHxRuF JPVFsd6zvdGZ8IW+3I48pI/1LDVJ75kb2jcB0mA6qvSkKk3Tjot69PQGNIXbhQMCxh51Tc 59vezSVzqkSI2+8xgqZCcWL5L2Rkl66a5f8c7kGXKlvCrVFiTO/90yo+DK4t7VJnjoo1Lj IAz9Pu+59qd21+TlPqwsV4aQFuCn+5kUL+QdB1VyNNK4eGC0m4mVjH5gpIGk+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672961497; 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=lmNfHSZas4H9weGgnFGvQHp+x6VYGdGAKDIPmNAOFrU=; b=N2OjaDigNifpAACECfjmm+cULFe6Pr5brVxWSwr8OEi7HPOv3loZhHfKhhUYHakdrtsu3O UATQWAZn6ZAsNWs4mXubW1/xuUdycm/EaEgnkYbYgsGpbiLOZuDq9cFwdTnCpJwH4AHMr9 FEd+aF3zH8qZCQeyW5PTtbkxIDxeh28fU1eI96HCUaEe7yv9Wy6fmLlRubGLyn+yeScND7 8kk6QX94SXSn44x2E2zxgSefFgxfPPuOW5MnSeAEhc5QQKDbzJOwmhYibR2mRIb8izfkGr FQJgYYkA5U/MXpjX7OycivWN3F7UnYMVevsUAOWVz64ooiq5YfiWnlybjwdPPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672961497; a=rsa-sha256; cv=none; b=D5m4G+j+OMKONYqbQ6q8d/IQpnnG23dpWgncWDo9lyiSAKVxwkM3sCyTBXbxNRXzECbOgX l0WyY1YuIGkBnQKZ4AgcuSl1MBJz1Me0cDja8QzTskBewDNc4P6CBJsXwT7zmgk2y5OrFT LjvBTeoFwL57xE+wQXOEfdbKky9nQcpm8Vaj09Gu5O7SpgYtXL2jBfbySv8bpWpPv+PZPF xkT6a/m34aN6cyau+0wbOevsqzeE7qT9a5KMTk7sAqDG2p4r2F61MQ1cY9XATquHY7xscm z6xllBtc8EBzRM0qU+7Ct9/gfBvrGn+URJpMYHkKlaq6AfhQ6ZM7qWIwfnR67g== 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 4Np2mT1h7Fz1863; Thu, 5 Jan 2023 23:31:37 +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 305NVbQL020108; Thu, 5 Jan 2023 23:31:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 305NVb8C020107; Thu, 5 Jan 2023 23:31:37 GMT (envelope-from git) Date: Thu, 5 Jan 2023 23:31:37 GMT Message-Id: <202301052331.305NVb8C020107@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: ad97b9bbfccd - main - 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/main X-Git-Reftype: branch X-Git-Commit: ad97b9bbfccdb36f17788033903b1dbf508fcb96 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=ad97b9bbfccdb36f17788033903b1dbf508fcb96 commit ad97b9bbfccdb36f17788033903b1dbf508fcb96 Author: Konstantin Belousov AuthorDate: 2023-01-04 10:31:16 +0000 Commit: Konstantin Belousov CommitDate: 2023-01-05 23:30:29 +0000 amd64 pmap.h: make it easier to use the header for other consumers Guard pmap_invlpg() definition with checks that only provide it when both sys/pcpu.h and machine/cpufunc.h were already included. Requested by: Elliott Mitchell Sponsored by: The FreeBSD Foundation MFC after: 1 week --- 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 e7497c2f8b4b..a7e456d80fcf 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -516,6 +516,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 @@ -533,6 +534,7 @@ pmap_invlpg(pmap_t pmap, vm_offset_t va) invlpg(va); } } +#endif /* sys/pcpu.h && machine/cpufunc.h */ #endif /* _KERNEL */