diff options
author | ian <ian@FreeBSD.org> | 2014-10-26 04:06:29 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-10-26 04:06:29 +0000 |
commit | afbd2ea2260adb616b26a56ab6e43139507594e0 (patch) | |
tree | 766661c17cdf384cfc8f259ced73ece1d6e296b6 /sys/arm | |
parent | 8526d66c636337d8a561fa54ed24f881c8ad347a (diff) | |
download | FreeBSD-src-afbd2ea2260adb616b26a56ab6e43139507594e0.zip FreeBSD-src-afbd2ea2260adb616b26a56ab6e43139507594e0.tar.gz |
MFC r272333: Honor exclusion flags when building the memory lists.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/arm/physmem.c | 6 |
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; /* |