From 231d6c4464d62828aa87733962faa5bb135709ba Mon Sep 17 00:00:00 2001 From: Nathan Giddings Date: Wed, 9 Dec 2020 05:07:58 -0600 Subject: [PATCH] Added const specifier to memory map argument --- src/pageallocator.cpp | 2 +- src/pageallocator.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pageallocator.cpp b/src/pageallocator.cpp index 761a52d..d31617c 100755 --- a/src/pageallocator.cpp +++ b/src/pageallocator.cpp @@ -26,7 +26,7 @@ kernel::BuddyAllocator::BuddyAllocator() } -kernel::BuddyAllocator::BuddyAllocator(kernel::MemoryMap& memmap, +kernel::BuddyAllocator::BuddyAllocator(const kernel::MemoryMap& memmap, char* bitmap, size_t blockCount, size_t treeHeight) { diff --git a/src/pageallocator.hpp b/src/pageallocator.hpp index d3034ec..27e2acd 100755 --- a/src/pageallocator.hpp +++ b/src/pageallocator.hpp @@ -57,7 +57,7 @@ public: BuddyAllocator(); - BuddyAllocator(MemoryMap& memmap, char* bitmap, size_t blockCount, + BuddyAllocator(const MemoryMap& memmap, char* bitmap, size_t blockCount, size_t treeHeight); BuddyAllocator(char* bitmap, size_t blockSize, size_t blockCount,