(&mut self)
| 79 | |
| 80 | impl Drop for Process { |
| 81 | fn drop(&mut self) { |
| 82 | // Check if the page table is currently active |
| 83 | if self.page_table_physaddr == memory::active_pagetable_physaddr() { |
| 84 | memory::switch_to_kernel_pagetable(); |
| 85 | } |
| 86 | memory::free_user_pagetables(self.page_table_physaddr); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | impl Process { |
nothing calls this directly
no test coverage detected