()
| 211 | } |
| 212 | |
| 213 | pub fn switch_to_kernel_pagetable() { |
| 214 | let memory_info = unsafe {MEMORY_INFO.as_mut().unwrap()}; |
| 215 | let phys_addr = (memory_info.kernel_l4_table as *mut PageTable as u64) |
| 216 | - memory_info.physical_memory_offset.as_u64(); |
| 217 | switch_to_pagetable(phys_addr); |
| 218 | } |
| 219 | |
| 220 | pub fn active_pagetable_physaddr() -> u64 { |
| 221 | let mut physaddr: u64; |
no test coverage detected