aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2014-09-30 21:28:05 +0000
committerIan Lepore <ian@FreeBSD.org>2014-09-30 21:28:05 +0000
commit3a79cdc73aaaafe455f0b87d4e422d4ecc8e0b34 (patch)
treec2318b410761082b1eac74f5f73b51e81cf1c20e /sys
parent060a95ef01f91b2f89b08c358c8921d43cad3450 (diff)
Notes
Diffstat (limited to 'sys')
-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 d42cac481ace5..8618e46e27ae6 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;
/*