powerpc/aim: ifdef DDB pmap debugging functions

INVARIANTS and DDB can be enabled independently.

Submitted by: Sterling Jensen
Pull Request: https://github.com/freebsd/freebsd-src/pull/566
This commit is contained in:
Warner Losh 2022-01-07 08:48:08 -07:00
parent 153b6271a7
commit 47796d47ec

View File

@ -2934,7 +2934,9 @@ mmu_radix_enter(pmap_t pmap, vm_offset_t va, vm_page_t m,
" asid=%lu curpid=%d name=%s origpte0x%lx\n",
pmap, va, m, prot, flags, psind, pmap->pm_pid,
curproc->p_pid, curproc->p_comm, origpte);
#ifdef DDB
pmap_pte_walk(pmap->pm_pml1, va);
#endif
}
#endif
/*
@ -3018,7 +3020,9 @@ mmu_radix_enter(pmap_t pmap, vm_offset_t va, vm_page_t m,
#ifdef INVARIANTS
else if (origpte & PG_MANAGED) {
if (pv == NULL) {
#ifdef DDB
pmap_page_print_mappings(om);
#endif
MPASS(pv != NULL);
}
}