freebsd-dev/sys/riscv
Mitchell Horne 8a0339e679 riscv: eliminate physmap global
Since physical memory management is now handled by subr_physmem.c, the
need to keep this global array has diminished. It is not referenced
outside of early boot-time, and is populated by physmem_avail() in
pmap_bootstrap(). Just allocate the array on the stack for the duration
of its lifetime.

The check against physmap[0] in initriscv() can be dropped altogether,
as there is no consequence for excluding a memory range twice.

Reviewed by:	markj
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D34778
2022-04-07 12:26:59 -03:00
..
conf riscv: conf: Remove options EXT_RESOURCES 2022-02-21 17:29:13 +01:00
include riscv: eliminate physmap global 2022-04-07 12:26:59 -03:00
riscv riscv: eliminate physmap global 2022-04-07 12:26:59 -03:00
sifive sifive_spi: Add missing case for SPIBUS_MODE_NONE 2021-08-30 23:38:02 +01:00