Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2019 23:58:16 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r344828 - head/sys/riscv/riscv
Message-ID:  <201903052358.x25NwGmO019634@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903052358.x25NwGmO019634>