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:
parent
6ea5db20ff
commit
479df315d2
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue