The branch main has been updated by mhorne:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=4e148a7baa1cb7fcc17f4ffb5e2b91ab78925fa6

commit 4e148a7baa1cb7fcc17f4ffb5e2b91ab78925fa6
Author:     Mitchell Horne <mho...@freebsd.org>
AuthorDate: 2024-07-08 14:46:55 +0000
Commit:     Mitchell Horne <mho...@freebsd.org>
CommitDate: 2024-07-08 14:46:55 +0000

    riscv: include PV chunks in kernel dump
    
    Un-ifdef the call to dump_add_page() in reserve_pv_entries(). We want PV
    chunks available in the kernel dump, in case they need inspection.
    
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D45760
---
 sys/riscv/riscv/pmap.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/riscv/riscv/pmap.c b/sys/riscv/riscv/pmap.c
index f49f18ba87bb..110f321a9461 100644
--- a/sys/riscv/riscv/pmap.c
+++ b/sys/riscv/riscv/pmap.c
@@ -2102,9 +2102,7 @@ retry:
                }
                PV_STAT(atomic_add_int(&pc_chunk_count, 1));
                PV_STAT(atomic_add_int(&pc_chunk_allocs, 1));
-#if 0
                dump_add_page(m->phys_addr);
-#endif
                pc = (void *)PHYS_TO_DMAP(m->phys_addr);
                pc->pc_pmap = pmap;
                pc->pc_map[0] = PC_FREEN;

Reply via email to