git: 47796d47ecec - main - powerpc/aim: ifdef DDB pmap debugging functions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 07 Jan 2022 15:57:53 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=47796d47ecec45fab8a0e8357da756554e8272f7
commit 47796d47ecec45fab8a0e8357da756554e8272f7
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-01-07 15:48:08 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-01-07 15:56:57 +0000
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);
}
}