From 1737f482840306df4b935b321b5be7fc9afe46d9 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 18 Apr 2017 11:53:00 +0200 Subject: [PATCH] Create a InactivePageTable struct --- 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 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 } + } +}