aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/memory/heap/linked_list_allocator.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/include/arch/memory/heap/linked_list_allocator.hpp b/arch/x86_64/include/arch/memory/heap/linked_list_allocator.hpp
index 99d0013..2d76124 100644
--- a/arch/x86_64/include/arch/memory/heap/linked_list_allocator.hpp
+++ b/arch/x86_64/include/arch/memory/heap/linked_list_allocator.hpp
@@ -58,6 +58,9 @@ namespace teachos::arch::memory::heap
*/
auto split_free_memory_block(memory_block *& current_block, std::size_t size) -> void *;
+ auto coalesce_free_memory_block(memory_block *& previous_block, memory_block *& current_block, void * pointer,
+ std::size_t size) -> void *;
+
std::size_t heap_start; ///< Start of the allocatable heap area
std::size_t heap_end; ///< End of the allocatable heap area
memory_block * first; ///< First free entry in our memory