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
This commit is contained in:
Mitchell Horne 2024-07-08 11:46:55 -03:00
parent 88d81453b1
commit 4e148a7baa

View File

@ -2102,9 +2102,7 @@ retry:
} }
PV_STAT(atomic_add_int(&pc_chunk_count, 1)); PV_STAT(atomic_add_int(&pc_chunk_count, 1));
PV_STAT(atomic_add_int(&pc_chunk_allocs, 1)); PV_STAT(atomic_add_int(&pc_chunk_allocs, 1));
#if 0
dump_add_page(m->phys_addr); dump_add_page(m->phys_addr);
#endif
pc = (void *)PHYS_TO_DMAP(m->phys_addr); pc = (void *)PHYS_TO_DMAP(m->phys_addr);
pc->pc_pmap = pmap; pc->pc_pmap = pmap;
pc->pc_map[0] = PC_FREEN; pc->pc_map[0] = PC_FREEN;