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

Function active_pagetable_physaddr

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

Source from the content-addressed store, hash-verified

218}
219
220pub fn active_pagetable_physaddr() -> u64 {
221 let mut physaddr: u64;
222 unsafe {
223 asm!("mov {addr}, cr3",
224 addr = out(reg) physaddr);
225 }
226 physaddr
227}
228
229pub fn active_pagetable_ptr() -> *mut PageTable {
230 let memory_info = unsafe {MEMORY_INFO.as_mut().unwrap()};

Callers 4

dropMethod · 0.85
with_pagetableFunction · 0.85
schedule_nextFunction · 0.85
active_pagetable_ptrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected