From 62d655fbddf392ad0b4666da41905904095af238 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 13 Apr 2017 18:31:26 +0200 Subject: [PATCH] Create a memory::paging::table submodule with a Table struct --- src/memory/paging/mod.rs | 1 + src/memory/paging/table.rs | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 src/memory/paging/table.rs diff --git a/src/memory/paging/mod.rs b/src/memory/paging/mod.rs index 9bcddfb..75859d0 100644 --- a/src/memory/paging/mod.rs +++ b/src/memory/paging/mod.rs @@ -1,6 +1,7 @@ use memory::PAGE_SIZE; mod entry; +mod table; const ENTRY_COUNT: usize = 512; diff --git a/src/memory/paging/table.rs b/src/memory/paging/table.rs new file mode 100644 index 0000000..a6652b5 --- /dev/null +++ b/src/memory/paging/table.rs @@ -0,0 +1,6 @@ +use memory::paging::entry::*; +use memory::paging::ENTRY_COUNT; + +pub struct Table { + entries: [Entry; ENTRY_COUNT], +}