x86 paging refactor for debugger
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ impl Context {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_page_utable(&mut self) -> usize {
|
||||
pub fn get_page_utable(&self) -> usize {
|
||||
self.cr3
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user