mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix typos, adjust debug
This commit is contained in:
parent
e5ac160c7c
commit
3cf79dbbd4
1 changed files with 2 additions and 2 deletions
|
|
@ -792,7 +792,7 @@ pub fn lend_page_inner(
|
||||||
let result = map_page_inner(mm, dest_pid, phys, dest_addr as usize, new_flags, dest_pid.get() != 1);
|
let result = map_page_inner(mm, dest_pid, phys, dest_addr as usize, new_flags, dest_pid.get() != 1);
|
||||||
unsafe { flush_mmu() };
|
unsafe { flush_mmu() };
|
||||||
|
|
||||||
// Switch back to our proces space
|
// Switch back to our process space
|
||||||
src_space.activate().unwrap();
|
src_space.activate().unwrap();
|
||||||
|
|
||||||
// Return the new address.
|
// Return the new address.
|
||||||
|
|
@ -1130,7 +1130,7 @@ pub fn evict_page_inner(target_pid: PID, vaddr: usize) -> Result<usize, xous_ker
|
||||||
let target_pte = unsafe { entry.read_volatile() };
|
let target_pte = unsafe { entry.read_volatile() };
|
||||||
let target_paddr = (target_pte >> 10) << 12;
|
let target_paddr = (target_pte >> 10) << 12;
|
||||||
|
|
||||||
#[cfg(feature = "debug-swap")]
|
#[cfg(feature = "debug-swap-verbose")]
|
||||||
println!(
|
println!(
|
||||||
"-- evict[{}]: {:08x} -> {:08x} (flags: {:?}), count {}",
|
"-- evict[{}]: {:08x} -> {:08x} (flags: {:?}), count {}",
|
||||||
target_pid.get(),
|
target_pid.get(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue