Changeset 6188fee in mainline


Ignore:
Timestamp:
2023-02-26T11:24:51Z (22 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
deed510
Parents:
65f3117
Message:

Exclude boot allocations in frame allocator

I think some platforms only worked by pure luck without this.
Particularly ppc32, on which this luck was broken by previous
commit.

Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/mm/frame.c

    r65f3117 r6188fee  
    111111        if (overlaps(frame << ZERO_PAGE_WIDTH, ZERO_PAGE_SIZE,
    112112            KA2PA(config.base), config.kernel_size))
     113                return false;
     114
     115        /* Boot allocations */
     116        if (overlaps(frame << ZERO_PAGE_WIDTH, ZERO_PAGE_SIZE,
     117            KA2PA(ballocs.base), ballocs.size))
    113118                return false;
    114119
  • kernel/generic/src/mm/frame.c

    r65f3117 r6188fee  
    752752                                        continue;
    753753
     754                                if (overlaps(addr, PFN2ADDR(confcount),
     755                                    KA2PA(ballocs.base), ballocs.size))
     756                                        continue;
     757
    754758                                bool overlap = false;
    755759                                for (size_t i = 0; i < init.cnt; i++) {
Note: See TracChangeset for help on using the changeset viewer.