x86 paging refactor for debugger

This commit is contained in:
Jeremy Soller
2021-11-30 20:56:55 -07:00
parent 77b8215a66
commit 63fcc204cb
2 changed files with 4 additions and 1 deletions

View File

@@ -265,7 +265,10 @@ impl ActivePageTable {
})
};
unsafe {
// Activate new page table
RmmA::set_table(new_table.frame.start_address());
// Update mapper to new page table
self.mapper = Mapper::current();
}
old_table
}

View File

@@ -76,7 +76,7 @@ impl Context {
}
}
pub fn get_page_utable(&mut self) -> usize {
pub fn get_page_utable(&self) -> usize {
self.cr3
}