Changeset 65f3117 in mainline for kernel/generic/src/mm/frame.c


Ignore:
Timestamp:
2023-02-25T13:16:38Z (23 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6188fee
Parents:
4f84ee42
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-14 13:38:14)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-25 13:16:38)
Message:

Make bootstrap stack statically, rather than dynamically allocated

With aligment requirements being part of the language now, it is
simple to allocate the extra stack area in kernel data, and we
don't need to go to so much trouble with manual allocation.
It also makes it slightly more straightforward to use the stack
from assembly, without having to dig through a saved context
structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/frame.c

    r4f84ee42 r65f3117  
    752752                                        continue;
    753753
    754                                 if (overlaps(addr, PFN2ADDR(confcount),
    755                                     KA2PA(config.stack_base), config.stack_size))
    756                                         continue;
    757 
    758754                                bool overlap = false;
    759755                                for (size_t i = 0; i < init.cnt; i++) {
     
    11211117                frame_mark_unavailable(ADDR2PFN(KA2PA(config.base)),
    11221118                    SIZE2FRAMES(config.kernel_size));
    1123                 frame_mark_unavailable(ADDR2PFN(KA2PA(config.stack_base)),
    1124                     SIZE2FRAMES(config.stack_size));
    11251119
    11261120                for (size_t i = 0; i < init.cnt; i++)
Note: See TracChangeset for help on using the changeset viewer.