feat(vmm): Add Paging support

This commit is contained in:
Daniel Hammer
2025-04-17 21:54:25 +02:00
parent 0b77abfc23
commit 2515149f28
14 changed files with 266 additions and 11 deletions
+7
View File
@@ -61,6 +61,13 @@ namespace Memory {
return nullptr;
}
void* PageFrameAllocator::AllocateZeroed() {
auto page = Allocate();
memset(page, 0, 0x1000);
return page;
}
void* PageFrameAllocator::ReallocConsecutive(void* ptr, int n) {
auto first = Allocate();