From 479df315d2c7c965f9a6e53317d0960755ab92f5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 13 Jul 2021 17:56:15 +0200 Subject: [PATCH] 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. :^) --- Kernel/VM/PhysicalZone.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Kernel/VM/PhysicalZone.h b/Kernel/VM/PhysicalZone.h index 468fadaad5..f2a7d1d583 100644 --- a/Kernel/VM/PhysicalZone.h +++ b/Kernel/VM/PhysicalZone.h @@ -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;