Switch to the specified page table # Input physaddr Physical address of the L4 page table
(physaddr: u64)
| 204 | /// |
| 205 | /// physaddr Physical address of the L4 page table |
| 206 | pub fn switch_to_pagetable(physaddr: u64) { |
| 207 | unsafe { |
| 208 | asm!("mov cr3, {addr}", |
| 209 | addr = in(reg) physaddr); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | pub fn switch_to_kernel_pagetable() { |
| 214 | let memory_info = unsafe {MEMORY_INFO.as_mut().unwrap()}; |
no outgoing calls
no test coverage detected