diff --git a/src/memory/paging/mod.rs b/src/memory/paging/mod.rs index 122ff2a4..df2e2099 100644 --- a/src/memory/paging/mod.rs +++ b/src/memory/paging/mod.rs @@ -155,6 +155,17 @@ impl ActivePageTable { } } +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 } + } +} + pub fn test_paging(allocator: &mut A) where A: FrameAllocator {