Reset src to master to be able to follow step-by-stp

This commit is contained in:
Philipp Oppermann
2015-12-07 18:33:53 +01:00
parent 9019309d40
commit dabef43db9
9 changed files with 10 additions and 492 deletions

View File

@@ -1,7 +1,5 @@
pub use self::area_frame_allocator::AreaFrameAllocator;
use self::paging::PhysicalAddress;
pub mod paging;
mod area_frame_allocator;
pub const PAGE_SIZE: usize = 4096;
@@ -13,11 +11,7 @@ pub struct Frame {
impl Frame {
fn containing_address(address: usize) -> Frame {
Frame { number: address / PAGE_SIZE }
}
fn start_address(&self) -> PhysicalAddress {
self.number * PAGE_SIZE
Frame{ number: address / PAGE_SIZE }
}
}