svn commit: r344828 - head/sys/riscv/riscv
Mark Johnston
markj at FreeBSD.org
Tue Mar 5 23:58:17 UTC 2019
Author: markj
Date: Tue Mar 5 23:58:16 2019
New Revision: 344828
URL: https://svnweb.freebsd.org/changeset/base/344828
Log:
Initialize dump_avail[] on riscv.
Submitted by: Mitchell Horne <mhorne063 at gmail.com>
Differential Revision: https://reviews.freebsd.org/D19170
Modified:
head/sys/riscv/riscv/pmap.c
Modified: head/sys/riscv/riscv/pmap.c
==============================================================================
--- head/sys/riscv/riscv/pmap.c Tue Mar 5 23:56:40 2019 (r344827)
+++ head/sys/riscv/riscv/pmap.c Tue Mar 5 23:58:16 2019 (r344828)
@@ -628,7 +628,7 @@ pmap_bootstrap(vm_offset_t l1pt, vm_paddr_t kernstart,
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,
if (start == end)
continue;
+ dump_avail[map_slot] = start;
+ dump_avail[map_slot + 1] = end;
+
if (start >= kernstart && end <= pa)
continue;
More information about the svn-src-all
mailing list