mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Rename RecursivePageTable to ActivePageTable
This commit is contained in:
@@ -41,13 +41,13 @@ impl Page {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct RecursivePageTable {
|
||||
pub struct ActivePageTable {
|
||||
p4: Unique<Table<Level4>>,
|
||||
}
|
||||
|
||||
impl RecursivePageTable {
|
||||
pub unsafe fn new() -> RecursivePageTable {
|
||||
RecursivePageTable { p4: Unique::new(table::P4) }
|
||||
impl ActivePageTable {
|
||||
pub unsafe fn new() -> ActivePageTable {
|
||||
ActivePageTable { p4: Unique::new(table::P4) }
|
||||
}
|
||||
|
||||
fn p4(&self) -> &Table<Level4> {
|
||||
@@ -148,7 +148,7 @@ impl RecursivePageTable {
|
||||
pub fn test_paging<A>(allocator: &mut A)
|
||||
where A: FrameAllocator
|
||||
{
|
||||
let mut page_table = unsafe { RecursivePageTable::new() };
|
||||
let mut page_table = unsafe { ActivePageTable::new() };
|
||||
|
||||
// test translate
|
||||
println!("Some = {:?}", page_table.translate(0));
|
||||
|
||||
Reference in New Issue
Block a user