aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory/heap
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2025-05-11 09:29:56 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2025-05-11 09:29:56 +0000
commitef156dd6430855434b54275b22cd43ee3cedcfdc (patch)
treef3517844fe334cc1f0608184dc1372ce5a197f67 /arch/x86_64/src/memory/heap
parent833cd6446d9981a262959749c0e248e33b54c174 (diff)
downloadteachos-ef156dd6430855434b54275b22cd43ee3cedcfdc.tar.xz
teachos-ef156dd6430855434b54275b22cd43ee3cedcfdc.zip
make frame_allocator and active_page_table statically available
Diffstat (limited to 'arch/x86_64/src/memory/heap')
-rw-r--r--arch/x86_64/src/memory/heap/memory_block.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86_64/src/memory/heap/memory_block.cpp b/arch/x86_64/src/memory/heap/memory_block.cpp
index 446cd96..9f1fea8 100644
--- a/arch/x86_64/src/memory/heap/memory_block.cpp
+++ b/arch/x86_64/src/memory/heap/memory_block.cpp
@@ -6,6 +6,7 @@ namespace teachos::arch::memory::heap
{
memory_block::memory_block(std::size_t size, memory_block * next)
{
+ // TODO: Figure out why this memset fails
memset(static_cast<void *>(this), 0, size);
this->size = size;
this->next = next;