aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory/allocator
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-28 15:18:31 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-28 15:18:31 +0000
commitf9f047f519d0100c40b914d3ce777ac2f8430b38 (patch)
tree396608736b5e1d0de35e251085a0538726c7675f /arch/x86_64/src/memory/allocator
parentbd3ae51093b504bd035cb698c637ef6f82994ba2 (diff)
downloadkernel-f9f047f519d0100c40b914d3ce777ac2f8430b38.tar.xz
kernel-f9f047f519d0100c40b914d3ce777ac2f8430b38.zip
Add is empty check method for page table
Diffstat (limited to 'arch/x86_64/src/memory/allocator')
-rw-r--r--arch/x86_64/src/memory/allocator/area_frame_allocator.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/x86_64/src/memory/allocator/area_frame_allocator.cpp b/arch/x86_64/src/memory/allocator/area_frame_allocator.cpp
index fecc6cd..e79cd8b 100644
--- a/arch/x86_64/src/memory/allocator/area_frame_allocator.cpp
+++ b/arch/x86_64/src/memory/allocator/area_frame_allocator.cpp
@@ -85,11 +85,8 @@ namespace teachos::arch::memory::allocator
auto area_frame_allocator::deallocate_frame(physical_frame physical_frame) -> void
{
- // TODO: Implement deallocation to make unmap actually work.
- if (physical_frame.frame_number == 0)
- {
- }
- /*exception_handling::assert(false && physical_frame.frame_number == 0,
- "[deallocate_frame] Not implemented Exception");*/
+ // TODO: Fix create acutal deallocation of frames if it is even possible. Can the area frame allocator even
+ // deallocate in the first place?
+ next_free_frame = physical_frame;
}
} // namespace teachos::arch::memory::allocator