From 50e2bda01928bfbad90a91439ac6326473a698b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matteo=20Gm=C3=BCr?= Date: Mon, 9 Dec 2024 12:03:39 +0000 Subject: Generate doyxgen files with build taks --- arch/x86_64/include/arch/memory/allocator/concept.hpp | 4 +--- arch/x86_64/include/arch/memory/heap/concept.hpp | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'arch/x86_64/include') diff --git a/arch/x86_64/include/arch/memory/allocator/concept.hpp b/arch/x86_64/include/arch/memory/allocator/concept.hpp index 18bb6bd..2d3f4ae 100644 --- a/arch/x86_64/include/arch/memory/allocator/concept.hpp +++ b/arch/x86_64/include/arch/memory/allocator/concept.hpp @@ -8,9 +8,7 @@ namespace teachos::arch::memory::allocator { /** - * @brief Frame allocator concept - * - * @tparam T + * @brief Frame allocator concept required for allocating and deallocating physical frames in memory. */ template concept FrameAllocator = requires(T t, physical_frame const & a) { diff --git a/arch/x86_64/include/arch/memory/heap/concept.hpp b/arch/x86_64/include/arch/memory/heap/concept.hpp index 1cd24f4..e22e35f 100644 --- a/arch/x86_64/include/arch/memory/heap/concept.hpp +++ b/arch/x86_64/include/arch/memory/heap/concept.hpp @@ -8,6 +8,9 @@ namespace teachos::arch::memory::heap std::size_t constexpr HEAP_START = 0x100000000; std::size_t constexpr HEAP_SIZE = 100 * 1024; + /** + * @brief Heap allocator concept required for allocating and managing free space on the heap. + */ template concept HeapAllocator = requires(T t, uint8_t * pointer, std::size_t size) { { t.allocate(size) } -> std::same_as; -- cgit v1.2.3