Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Sep 2014 21:28:05 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272333 - head/sys/arm/arm
Message-ID:  <201409302128.s8ULS5je027914@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Tue Sep 30 21:28:05 2014
New Revision: 272333
URL: http://svnweb.freebsd.org/changeset/base/272333

Log:
  When building the lists of available memory, actually honor the exclusion
  flags, like the comment says it does.
  
  Pointy hat:	ian
  Submitted by:	Svatopluk Kraus <onwahe@gmail.com>

Modified:
  head/sys/arm/arm/physmem.c

Modified: head/sys/arm/arm/physmem.c
==============================================================================
--- head/sys/arm/arm/physmem.c	Tue Sep 30 21:03:17 2014	(r272332)
+++ head/sys/arm/arm/physmem.c	Tue Sep 30 21:28:05 2014	(r272333)
@@ -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?201409302128.s8ULS5je027914>