aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory/heap
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-11-24 13:51:12 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-11-24 13:51:12 +0000
commitc291e1ed629489c418049f6c4116433636717636 (patch)
treeaee0889f0d52ee51ada62ee992ee0b9682f78774 /arch/x86_64/src/memory/heap
parent47732f54474a083e9f98e52714c12c0ca1181174 (diff)
downloadteachos-c291e1ed629489c418049f6c4116433636717636.tar.xz
teachos-c291e1ed629489c418049f6c4116433636717636.zip
Add comments and rename file
Diffstat (limited to 'arch/x86_64/src/memory/heap')
-rw-r--r--arch/x86_64/src/memory/heap/bump_allocator.cpp (renamed from arch/x86_64/src/memory/heap/allocator.cpp)7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86_64/src/memory/heap/allocator.cpp b/arch/x86_64/src/memory/heap/bump_allocator.cpp
index bb61be4..486ece8 100644
--- a/arch/x86_64/src/memory/heap/allocator.cpp
+++ b/arch/x86_64/src/memory/heap/bump_allocator.cpp
@@ -1,4 +1,4 @@
-#include "arch/memory/heap/allocator.hpp"
+#include "arch/memory/heap/bump_allocator.hpp"
#include "arch/exception_handling/assert.hpp"
@@ -17,10 +17,9 @@ namespace teachos::arch::memory::heap
return reinterpret_cast<void *>(alloc_start);
}
- auto bump_allocator::deallocate(uint8_t * pointer) -> void
+ auto bump_allocator::deallocate(uint8_t * pointer, std::size_t size) -> void
{
- // Not implemented; leaking memory
- if (pointer)
+ if (pointer || size)
{
}
}