diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-28 14:33:42 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-28 14:33:42 +0000 |
| commit | 9af867de0050eef28772f7dee799666ae343950e (patch) | |
| tree | bd36ef41b2fd0dee194d5c6c33acbd0c80dc509e /arch/x86_64/include | |
| parent | d3e4df4dd4ee117e247f78a86746bf178787bc8f (diff) | |
| download | teachos-9af867de0050eef28772f7dee799666ae343950e.tar.xz teachos-9af867de0050eef28772f7dee799666ae343950e.zip | |
Start imlementation on actual algorithm
Diffstat (limited to 'arch/x86_64/include')
| -rw-r--r-- | arch/x86_64/include/arch/memory/heap/linked_list_allocator.hpp | 6 |
1 files changed, 3 insertions, 3 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 da7fc37..5f9a72b 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 @@ -52,15 +52,15 @@ namespace teachos::arch::memory::heap * for the allocation. * * @param current_hole Hole we want to split. - * @param new_hole New hole created by the split. + * @param size Size we want to allocate at the start of the hole. * * @return Address of the hole we just split. */ - auto split_hole(memory_hole & current_hole, memory_hole *& new_hole) -> void *; + auto split_hole(memory_hole *& current_hole, 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_hole first; ///< First free entry in our memory + memory_hole * first; ///< First free entry in our memory }; } // namespace teachos::arch::memory::heap |
