draft work on memory allocation

This commit is contained in:
georgemoralis 2023-05-17 19:29:05 +03:00
parent 81ca77a464
commit 5f0b15e2fa
3 changed files with 62 additions and 1 deletions

11
src/Core/Memory.h Normal file
View file

@ -0,0 +1,11 @@
#pragma once
namespace Memory
{
static u64 get_aligned_size(const elf_program_header* phdr);
static u64 calculate_base_size(const elf_header* ehdr, const elf_program_header* phdr);
namespace VirtualMemory {
u64 memory_alloc(u64 address, u64 size);
}
}