Rename RecursivePageTable to ActivePageTable

This commit is contained in:
Philipp Oppermann
2015-12-25 13:14:14 +01:00
parent d28548fa10
commit b39bb643dd
2 changed files with 15 additions and 15 deletions

View File

@@ -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));