Initialize dump_avail[] on riscv.

Submitted by:	Mitchell Horne <mhorne063@gmail.com>
Differential Revision:	https://reviews.freebsd.org/D19170
This commit is contained in:
Mark Johnston 2019-03-05 23:58:16 +00:00
parent 91c3fda00b
commit 3a3dfb2815
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344828

View File

@ -628,7 +628,7 @@ pmap_bootstrap(vm_offset_t l1pt, vm_paddr_t kernstart, vm_size_t kernlen)
pa = pmap_early_vtophys(l1pt, freemempos);
/* Initialize phys_avail. */
/* Initialize phys_avail and dump_avail. */
for (avail_slot = map_slot = physmem = 0; map_slot < physmap_idx * 2;
map_slot += 2) {
start = physmap[map_slot];
@ -636,6 +636,9 @@ pmap_bootstrap(vm_offset_t l1pt, vm_paddr_t kernstart, vm_size_t kernlen)
if (start == end)
continue;
dump_avail[map_slot] = start;
dump_avail[map_slot + 1] = end;
if (start >= kernstart && end <= pa)
continue;