Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Nov 2023 13:39:59 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 368b97361a03 - main - riscv: Update a variable name to match a comment
Message-ID:  <202311031339.3A3Ddx23029444@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=368b97361a0379acaec4a385c5c9d83ba6edc5a2

commit 368b97361a0379acaec4a385c5c9d83ba6edc5a2
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-11-03 13:34:11 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
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));
 }
 
 /*



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