5 #ifndef KERNOS_MEMORYALLOCATOR_H 6 #define KERNOS_MEMORYALLOCATOR_H 45 struct [[gnu::aligned(sizeof(uint32_t))]] Header
63 uint32_t m_StartAdd = 0;
64 uint32_t m_EndAdd = 0;
66 Header m_Base {
nullptr, 0};
72 void Initialize(
const uint32_t StartAdd,
const uint32_t EndAdd);
83 #endif //KERNOS_MEMORYALLOCATOR_H MemoryAllocator mem_alloc
void * kmalloc(size_t Size)
kernel malloc
void KMALLOC()
Provides memory allocator with range of reserved memory address to manage.
Manages kernel heap memory.
contains all kernel initialization routines
void free(void *Ptr)
kernel free