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

Function active_pagetable_ptr

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

Source from the content-addressed store, hash-verified

227}
228
229pub fn active_pagetable_ptr() -> *mut PageTable {
230 let memory_info = unsafe {MEMORY_INFO.as_mut().unwrap()};
231 let virt = memory_info.physical_memory_offset + active_pagetable_physaddr();
232 virt.as_mut_ptr()
233}
234
235///////////////////////////////////////////////////////////////////////
236// Routines to allocate memory in a single page table

Callers 2

fork_current_threadFunction · 0.85

Calls 2

as_mut_ptrMethod · 0.80

Tested by

no test coverage detected