feat: major overhaul and cleanup of paging and mm related code

This commit is contained in:
Zoe
2026-08-21 11:18:40 -05:00
parent af24a5a783
commit afcef918a3
15 changed files with 1040 additions and 628 deletions
+2 -1
View File
@@ -19,6 +19,7 @@ enum FrameState {
Allocated = 0b10,
}
// 64 KiB per GiB
#[derive(Debug)]
struct Bitmap {
start: VirtualAddr,
@@ -68,7 +69,7 @@ pub enum FrameAllocatorInitError {
BitmapOutsideDirectMap,
}
// very very simple linked list frame/page allocator
// very very simple bitmap frame/page allocator
#[derive(Debug)]
pub struct FrameAllocator {
bitmap: Bitmap,