mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add InactivePageTableSkeleton
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user