diff --git a/src/allocator.cpp b/src/allocator.cpp index cc24587..6ecef06 100644 --- a/src/allocator.cpp +++ b/src/allocator.cpp @@ -20,6 +20,11 @@ inline size_t ilog2(size_t n) return count - (isPowerOfTwo ? 1 : 0); } +kernel::Allocator::Allocator() +{ + +} + kernel::Allocator::Allocator(void* base, size_t heapSize, size_t blockSize) { this->base = (char*) base; diff --git a/src/allocator.hpp b/src/allocator.hpp index 5e99c11..bd9dfbf 100644 --- a/src/allocator.hpp +++ b/src/allocator.hpp @@ -10,6 +10,8 @@ class Allocator { public: + Allocator(); + /** * @param base A pointer to the start of the heap. * @param heapSize The size of the heap, in bytes. Must be a power of two.