svn commit: r273676 - stable/10/sys/arm/arm

Ian Lepore ian at FreeBSD.org
Sun Oct 26 04:06:30 UTC 2014


Author: ian
Date: Sun Oct 26 04:06:29 2014
New Revision: 273676
URL: https://svnweb.freebsd.org/changeset/base/273676

Log:
  MFC r272333:  Honor exclusion flags when building the memory lists.

Modified:
  stable/10/sys/arm/arm/physmem.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/arm/arm/physmem.c
==============================================================================
--- stable/10/sys/arm/arm/physmem.c	Sun Oct 26 04:01:57 2014	(r273675)
+++ stable/10/sys/arm/arm/physmem.c	Sun Oct 26 04:06:29 2014	(r273676)
@@ -168,6 +168,12 @@ regions_to_avail(vm_paddr_t *avail, uint
 		end   = hwp->size + start;
 		realmem += arm32_btop(end - start);
 		for (exi = 0, exp = exregions; exi < excnt; ++exi, ++exp) {
+			/*
+			 * If the excluded region does not match given flags,
+			 * continue checking with the next excluded region.
+			 */
+			if ((exp->flags & exflags) == 0)
+				continue;
 			xstart = exp->addr;
 			xend   = exp->size + xstart;
 			/*


More information about the svn-src-stable-10 mailing list