diff --git a/src/memory/paging/mod.rs b/src/memory/paging/mod.rs index 8273feb..197917e 100644 --- a/src/memory/paging/mod.rs +++ b/src/memory/paging/mod.rs @@ -156,3 +156,14 @@ impl ActivePageTable { //allocator.deallocate_frame(frame); } } + +pub struct InactivePageTable { + p4_frame: Frame, +} + +impl InactivePageTable { + pub fn new(frame: Frame) -> InactivePageTable { + // TODO zero and recursive map the frame + InactivePageTable { p4_frame: frame } + } +}