* Assert additional state is correct in pmap_pinit()
* Assert that the critical section count makes preemption impossible
in pmap_interlock_wait(), which is called from the depths of swtch.s
during a thread switch.
KKASSERT(pv->pv_m->flags & PG_MAPPED);
KKASSERT(pv->pv_m->flags & PG_WRITEABLE);
}
+ KKASSERT(pmap->pm_pml4[255] == 0);
+ KKASSERT(RB_ROOT(&pmap->pm_pvroot) == pv);
+ KKASSERT(pv->pv_entry.rbe_left == NULL);
+ KKASSERT(pv->pv_entry.rbe_right == NULL);
}
/*
if (pmap->pm_active & CPUMASK_LOCK) {
crit_enter();
+ KKASSERT(curthread->td_critcount >= 2);
DEBUG_PUSH_INFO("pmap_interlock_wait");
while (pmap->pm_active & CPUMASK_LOCK) {
cpu_ccfence();