diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-01-07 15:48:08 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-01-07 15:56:57 +0000 |
commit | 47796d47ecec45fab8a0e8357da756554e8272f7 (patch) | |
tree | ed8df9f6f391e74856d5f26c93d457284cd23004 | |
parent | 153b6271a740e86ed2ef8f51f0bb5f57d75a290d (diff) | |
download | src-47796d47ecec45fab8a0e8357da756554e8272f7.tar.gz src-47796d47ecec45fab8a0e8357da756554e8272f7.zip |
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
-rw-r--r-- | sys/powerpc/aim/mmu_radix.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } } |