Page MenuHomeFreeBSD

D36564.diff
No OneTemporary

D36564.diff

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
@@ -3908,6 +3908,10 @@
ptepde = pmap_load(pte);
pte = pmap_l1_to_l2(pte, pv->pv_va);
tpte = pmap_load(pte);
+
+ KASSERT((tpte & PTE_V) != 0,
+ ("L2 PTE is invalid... bogus PV entry? "
+ "va=%#lx, pte=%#lx", pv->pv_va, tpte));
if ((tpte & PTE_RWX) != 0) {
superpage = true;
} else {

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 6, 10:37 PM (15 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17020863
Default Alt Text
D36564.diff (450 B)

Event Timeline