svn commit: r272333 - head/sys/arm/arm
Ian Lepore
ian at FreeBSD.org
Tue Sep 30 21:28:05 UTC 2014
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 at 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;
/*
More information about the svn-src-all
mailing list