1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:27:35 +00:00

Kernel: Simplify the way PhysicalRegions are constructed

Instead of creating a PhysicalRegion and then expanding it over and
over as we traverse the memory map on boot, we now compute the final
size of the contiguous physical range up front, and *then* create a
PhysicalRegion object.
This commit is contained in:
Andreas Kling 2021-07-13 18:22:49 +02:00
parent 479df315d2
commit 5171249540
3 changed files with 17 additions and 18 deletions

View file

@ -25,7 +25,6 @@ public:
~PhysicalRegion();
void expand(PhysicalAddress lower, PhysicalAddress upper);
unsigned finalize_capacity();
void initialize_zones();