kernel: fix some TODOs

This commit is contained in:
2024-07-27 14:37:46 +03:00
parent a3d7ecd867
commit b9c1b15bd1
27 changed files with 188 additions and 478 deletions
+5
View File
@@ -213,6 +213,11 @@ impl<L: EntryLevel> PageTable<L> {
Ok(table)
}
pub unsafe fn free<TA: TableAllocator>(this: PhysicalRefMut<Self, KernelTableManagerImpl>) {
let physical = this.as_physical_address();
TA::free_page_table(physical);
}
// /// Returns the physical address of this table
// pub fn physical_address(&self) -> usize {
// unsafe { (self.data.as_ptr() as usize).physicalize() }