summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-10-26 04:06:29 +0000
committerian <ian@FreeBSD.org>2014-10-26 04:06:29 +0000
commitafbd2ea2260adb616b26a56ab6e43139507594e0 (patch)
tree766661c17cdf384cfc8f259ced73ece1d6e296b6
parent8526d66c636337d8a561fa54ed24f881c8ad347a (diff)
downloadFreeBSD-src-afbd2ea2260adb616b26a56ab6e43139507594e0.zip
FreeBSD-src-afbd2ea2260adb616b26a56ab6e43139507594e0.tar.gz
MFC r272333: Honor exclusion flags when building the memory lists.
-rw-r--r--sys/arm/arm/physmem.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/arm/arm/physmem.c b/sys/arm/arm/physmem.c
index d42cac4..8618e46 100644
--- a/sys/arm/arm/physmem.c
+++ b/sys/arm/arm/physmem.c
@@ -168,6 +168,12 @@ regions_to_avail(vm_paddr_t *avail, uint32_t exflags)
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;
/*
OpenPOWER on IntegriCloud