mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Create a InactivePageTable struct
This commit is contained in:
@@ -156,3 +156,14 @@ impl ActivePageTable {
|
||||
//allocator.deallocate_frame(frame);
|
||||
}
|
||||
}
|
||||
|
||||
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 }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user