From 4e148a7baa1cb7fcc17f4ffb5e2b91ab78925fa6 Mon Sep 17 00:00:00 2001 From: Mitchell Horne Date: Mon, 8 Jul 2024 11:46:55 -0300 Subject: [PATCH] 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;