Added default constructor to Allocator

This commit is contained in:
2020-08-02 15:06:23 -05:00
parent 436aa012b1
commit f220514e72
2 changed files with 7 additions and 0 deletions

View File

@@ -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;

View File

@@ -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.