From 47796d47ecec45fab8a0e8357da756554e8272f7 Mon Sep 17 00:00:00 2001 From: Warner Losh <imp@FreeBSD.org> Date: Fri, 7 Jan 2022 08:48:08 -0700 Subject: [PATCH] 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 --- sys/powerpc/aim/mmu_radix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/powerpc/aim/mmu_radix.c b/sys/powerpc/aim/mmu_radix.c index 788bd7f22a0a..d40e7d919160 100644 --- a/sys/powerpc/aim/mmu_radix.c +++ b/sys/powerpc/aim/mmu_radix.c @@ -2934,7 +2934,9 @@ retry: " 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 @@ retry: #ifdef INVARIANTS else if (origpte & PG_MANAGED) { if (pv == NULL) { +#ifdef DDB pmap_page_print_mappings(om); +#endif MPASS(pv != NULL); } }