MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / switch_to_kernel_pagetable

Function switch_to_kernel_pagetable

kernel/src/memory.rs:213–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211}
212
213pub 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
220pub fn active_pagetable_physaddr() -> u64 {
221 let mut physaddr: u64;

Callers 1

dropMethod · 0.85

Calls 2

switch_to_pagetableFunction · 0.85
as_u64Method · 0.45

Tested by

no test coverage detected