Add InactivePageTableSkeleton

This commit is contained in:
Philipp Oppermann
2015-12-30 22:58:15 +01:00
parent 2198d09695
commit a7000e537c

View File

@@ -155,6 +155,17 @@ impl ActivePageTable {
} }
} }
pub struct InactivePageTable {
p4_frame: Frame,
}
impl InactivePageTable {
pub fn new(frame: Frame) -> InactivePageTable {
// TODO zero and recursive map the frame
InactivePageTable { p4_frame: frame }
}
}
pub fn test_paging<A>(allocator: &mut A) pub fn test_paging<A>(allocator: &mut A)
where A: FrameAllocator where A: FrameAllocator
{ {