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

Function switch_to_pagetable

kernel/src/memory.rs:206–211  ·  view source on GitHub ↗

Switch to the specified page table # Input physaddr Physical address of the L4 page table

(physaddr: u64)

Source from the content-addressed store, hash-verified

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

Callers 4

with_pagetableFunction · 0.85
new_user_threadFunction · 0.85
schedule_nextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected