diff --git a/sys/riscv/riscv/pmap.c b/sys/riscv/riscv/pmap.c --- a/sys/riscv/riscv/pmap.c +++ b/sys/riscv/riscv/pmap.c @@ -2481,10 +2481,6 @@ mptepa = VM_PAGE_TO_PHYS(mpte); firstl3 = (pt_entry_t *)PHYS_TO_DMAP(mptepa); newl2 = ((mptepa / PAGE_SIZE) << PTE_PPN0_S) | PTE_V; - KASSERT((oldl2 & PTE_A) != 0, - ("pmap_demote_l2_locked: oldl2 is missing PTE_A")); - KASSERT((oldl2 & (PTE_D | PTE_W)) != PTE_W, - ("pmap_demote_l2_locked: oldl2 is missing PTE_D")); newl3 = oldl2; /*