The branch main has been updated by mhorne:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=05cf677bb8d8b2528fd5bf472c908eabe4e76125

commit 05cf677bb8d8b2528fd5bf472c908eabe4e76125
Author:     Wuyang Chung <wy-ch...@outlook.com>
AuthorDate: 2024-08-02 06:28:46 +0000
Commit:     Mitchell Horne <mho...@freebsd.org>
CommitDate: 2024-08-29 15:20:28 +0000

    riscv: remove a redundant MPASS test in _pmap_unwire_ptp()
    
    It is guaranteed by the else if condition.
    
    Reviewed by:    mhorne
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/1355
---
 sys/riscv/riscv/pmap.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/riscv/riscv/pmap.c b/sys/riscv/riscv/pmap.c
index 7058eb03cf44..c372e6f7362b 100644
--- a/sys/riscv/riscv/pmap.c
+++ b/sys/riscv/riscv/pmap.c
@@ -1464,7 +1464,6 @@ _pmap_unwire_ptp(pmap_t pmap, vm_offset_t va, vm_page_t 
m, struct spglist *free)
                pd_entry_t *l0;
                vm_page_t pdpg;
 
-               MPASS(pmap_mode != PMAP_MODE_SV39);
                l0 = pmap_l0(pmap, va);
                pdpg = PTE_TO_VM_PAGE(pmap_load(l0));
                pmap_unwire_ptp(pmap, va, pdpg, free);

Reply via email to