Create a memory::paging module with a Page struct

master
Philipp Oppermann 8 years ago
parent 9f84e37e1b
commit c7c02d7dca

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

@ -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,
}
Loading…
Cancel
Save