svn commit: r286366 - head/sys/arm64/arm64

Andrew Turner andrew at FreeBSD.org
Thu Aug 6 14:49:24 UTC 2015


Author: andrew
Date: Thu Aug  6 14:49:23 2015
New Revision: 286366
URL: https://svnweb.freebsd.org/changeset/base/286366

Log:
  Fill in dump_avail based on the physical memory from EFI.
  
  Obtained from:	ABT Systems Ltd
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/arm64/arm64/machdep.c

Modified: head/sys/arm64/arm64/machdep.c
==============================================================================
--- head/sys/arm64/arm64/machdep.c	Thu Aug  6 14:13:44 2015	(r286365)
+++ head/sys/arm64/arm64/machdep.c	Thu Aug  6 14:49:23 2015	(r286366)
@@ -822,8 +822,13 @@ initarm(struct arm64_bootparams *abp)
 
 	/* Print the memory map */
 	mem_len = 0;
-	for (i = 0; i < physmap_idx; i += 2)
+	for (i = 0; i < physmap_idx; i += 2) {
+		dump_avail[i] = physmap[i];
+		dump_avail[i + 1] = physmap[i + 1];
 		mem_len += physmap[i + 1] - physmap[i];
+	}
+	dump_avail[i] = 0;
+	dump_avail[i + 1] = 0;
 
 	/* Set the pcpu data, this is needed by pmap_bootstrap */
 	pcpup = &__pcpu[0];


More information about the svn-src-head mailing list