From a7000e537cf545df2b67a657298af70523f97012 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 30 Dec 2015 22:58:15 +0100 Subject: [PATCH] Add InactivePageTableSkeleton --- src/memory/paging/mod.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 {