From nobody Fri Nov 03 13:39:59 2023 X-Original-To: dev-commits-src-main@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 4SMMLR2Xwmz50BHH; Fri, 3 Nov 2023 13:39: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 4SMMLR26Ghz4fGc; Fri, 3 Nov 2023 13:39:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699018799; 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=tUtqZKwPnbrtRHD8nTpJ3mHjxjIqHeHHs1RcPUel97Q=; b=StYblGuXHRDcwNFskaPEF1iMZm1O7vgFLmNfcTx7LsWGlW26f5HUK4fuv+l4r1kGq2efYB D1c/nTMrqMUtVN2MbnzrJJ6Lr810IUo7wlcP9ReQnYt7oBbYiXNGgqY61I1qfu3Qcr+zrc FET2LFidZ8hkdAkiEJy3zse3hyBC327eKinbD1/ybdIkBtCnLHXmIcnaE114srrkxGSlwF 2AQeHAKwti+wQc/8YBn8z0wpRkEqYdTt58DmMN72GgnGj88cS1UElHBU76+ht/Qa7OCL03 hNQcxoyR6anm6WM0aFjpvcVpRSh92dR54pooASE9id0w/wAd7aSiN9MOtZPr5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699018799; 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=tUtqZKwPnbrtRHD8nTpJ3mHjxjIqHeHHs1RcPUel97Q=; b=Ey4mFj73P4E4NZlpNycgv5EP6imvvVG3oXUKeyQTBGN9JZQVOX/P7rz9l7aKciLkpHRhRc K4eN4hOtAPymQQl4zFbxGojLJbS2A+ROxrVRa9JnRl+/3dmFNNVc5SrekJkkZMXuxkUVkK giUqhqrHOloayr0mKkhMGuSvmxuI3aJx+pCQiE0HZxIOti2UL6T2jHXCxLzcL17IN7bESX oqCmBM8sfvIboAw9hJiLsLWQzqFfen1tn5UIc+LITL1dOBPh/StSpcrreP5bchxTka2hGP sac0ae2MLR5qyH22ZzNlFSqDQkbnGkaBXOtCqKO9oCuhp12cm5PeCYk1vR59lA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699018799; a=rsa-sha256; cv=none; b=Thcxt04prM8FHBprhHfFsw8gm2EQzPjs5YGqtbYqGEFbETlLnD+Ktk82mEZNLNEeeYNsIF 2zsOP5edlJ6HGox0HBXMlYcKgSi0/H1IM4fXRIzmZghrMbkRFgbAO17c1Rfv031glQBlUH sQ1aDSzQzSEAll9kEUXiGiZcPmd/gTUnR5bMsMu7Os7ECNrt7U1x63Vw41NZB8BpGimMtN mmWRNLl3pLBr1N4tHVG95vD4kl5wuCFLN2lP06q27CxAM1ZiAhFGQ7MptomG6a0hp7s+Io FWmh3SIiBTI6dgvsOqOMzC9w7b+f5MhEVIIoEMe5u4tUC1BP8AVgZ1T77rYpbA== 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 4SMMLR19FmzLT; Fri, 3 Nov 2023 13:39:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3A3DdxV5029447; Fri, 3 Nov 2023 13:39:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A3Ddx23029444; Fri, 3 Nov 2023 13:39:59 GMT (envelope-from git) Date: Fri, 3 Nov 2023 13:39:59 GMT Message-Id: <202311031339.3A3Ddx23029444@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 368b97361a03 - main - riscv: Update a variable name to match a comment List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 368b97361a0379acaec4a385c5c9d83ba6edc5a2 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=368b97361a0379acaec4a385c5c9d83ba6edc5a2 commit 368b97361a0379acaec4a385c5c9d83ba6edc5a2 Author: Mark Johnston AuthorDate: 2023-11-03 13:34:11 +0000 Commit: Mark Johnston CommitDate: 2023-11-03 13:38:56 +0000 riscv: Update a variable name to match a comment This makes pmap_insert_pt_page() consistent with arm64 and amd64. No functional change intended. Reported by: alc Fixes: 7703ac2e983b ("riscv: Port improvements from arm64/amd64 pmaps, part 1") --- sys/riscv/riscv/pmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/riscv/riscv/pmap.c b/sys/riscv/riscv/pmap.c index f0108b611937..f6923363c484 100644 --- a/sys/riscv/riscv/pmap.c +++ b/sys/riscv/riscv/pmap.c @@ -1206,15 +1206,15 @@ pmap_add_delayed_free_list(vm_page_t m, struct spglist *free, * field will be set to VM_PAGE_BITS_ALL. */ static __inline int -pmap_insert_pt_page(pmap_t pmap, vm_page_t ml3, bool promoted, +pmap_insert_pt_page(pmap_t pmap, vm_page_t mpte, bool promoted, bool all_l3e_PTE_A_set) { PMAP_LOCK_ASSERT(pmap, MA_OWNED); KASSERT(promoted || !all_l3e_PTE_A_set, ("a zero-filled PTP can't have PTE_A set in every PTE")); - ml3->valid = promoted ? (all_l3e_PTE_A_set ? VM_PAGE_BITS_ALL : 1) : 0; - return (vm_radix_insert(&pmap->pm_root, ml3)); + mpte->valid = promoted ? (all_l3e_PTE_A_set ? VM_PAGE_BITS_ALL : 1) : 0; + return (vm_radix_insert(&pmap->pm_root, mpte)); } /*