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

Kernel: Remove some friendships and make some classes non-copy/moveable

This commit is contained in:
Andreas Kling 2021-07-13 23:17:02 +02:00
parent 424afdd72b
commit de4ba1f39b
4 changed files with 11 additions and 7 deletions

View file

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