mirror of
https://github.com/opnsense/src.git
synced 2026-04-02 16:05:17 -04:00
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>
This commit is contained in:
parent
060a95ef01
commit
3a79cdc73a
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue