diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2024-12-01 13:34:46 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2024-12-01 13:34:46 +0000 |
| commit | 9072c2a277c0da298b977cf4fb3dbebb5481abd0 (patch) | |
| tree | e3c4fdf75e3cb73a0cc2d966c7179b371612d77f /arch/x86_64/include | |
| parent | 0cf972394e99dfa69fbaf2ec9f4c718fd36bbc3e (diff) | |
| download | teachos-9072c2a277c0da298b977cf4fb3dbebb5481abd0.tar.xz teachos-9072c2a277c0da298b977cf4fb3dbebb5481abd0.zip | |
implement clear_memory_block_header
Diffstat (limited to 'arch/x86_64/include')
| -rw-r--r-- | arch/x86_64/include/arch/memory/heap/linked_list_allocator.hpp | 3 |
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 236d366..7432561 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 @@ -59,6 +59,9 @@ namespace teachos::arch::memory::heap auto coalesce_free_memory_block(memory_block *& previous_block, memory_block *& current_block, void * pointer, std::size_t size) -> void; + // We cannot call delete, because it causes "undefined reference to `sbrk`". + auto clear_memory_block_header(void * pointer) -> 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 |
