Create a memory::paging module with a Page struct

This commit is contained in:
Philipp Oppermann
2017-04-13 18:23:20 +02:00
parent 9f84e37e1b
commit c7c02d7dca
2 changed files with 11 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
pub use self::area_frame_allocator::AreaFrameAllocator;
mod area_frame_allocator;
mod paging;
pub const PAGE_SIZE: usize = 4096;

10
src/memory/paging/mod.rs Normal file
View File

@@ -0,0 +1,10 @@
use memory::PAGE_SIZE;
const ENTRY_COUNT: usize = 512;
pub type PhysicalAddress = usize;
pub type VirtualAddress = usize;
pub struct Page {
number: usize,
}