Finish basics of new paging module

This commit is contained in:
Philipp Oppermann
2015-12-03 21:17:18 +01:00
parent 562221d725
commit a8df7b2e4d
11 changed files with 122 additions and 698 deletions

View File

@@ -1,7 +1,6 @@
pub use self::area_frame_allocator::AreaFrameAllocator;
pub mod paging;
pub mod paging_new;
mod area_frame_allocator;
pub const PAGE_SIZE: usize = 4096;
@@ -13,7 +12,7 @@ pub struct Frame {
impl Frame {
fn containing_address(address: usize) -> Frame {
Frame{ number: address / PAGE_SIZE }
Frame { number: address / PAGE_SIZE }
}
}