From f220514e7262f7df3b4d2f5c6b9ca1b26c05ac88 Mon Sep 17 00:00:00 2001 From: Nathan Giddings Date: Sun, 2 Aug 2020 15:06:23 -0500 Subject: [PATCH] Added default constructor to Allocator --- src/allocator.cpp | 5 +++++ src/allocator.hpp | 2 ++ 2 files changed, 7 insertions(+) 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.