Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Oct 2014 04:06:30 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r273676 - stable/10/sys/arm/arm
Message-ID:  <201410260406.s9Q46UNm039389@svn.freebsd.org>

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



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