1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:57:46 +00:00

Kernel: Make PhysicalZone an eternally allocated object

Until we start supporting hot-pluggable RAM, these will not be freed
or reallocated during the kernel's lifetime. :^)
This commit is contained in:
Andreas Kling 2021-07-13 17:56:15 +02:00
parent 6ea5db20ff
commit 479df315d2

View file

@ -19,6 +19,7 @@ namespace Kernel {
// The allocator uses a buddy block scheme internally.
class PhysicalZone {
AK_MAKE_ETERNAL
public:
static constexpr size_t ZONE_CHUNK_SIZE = PAGE_SIZE / 2;
using ChunkIndex = i16;