mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
cleanup some debug
This commit is contained in:
parent
1a34847b19
commit
b1a8b6fdae
1 changed files with 2 additions and 3 deletions
|
|
@ -685,7 +685,7 @@ impl Swap {
|
||||||
let target_pid = crate::arch::process::current_pid();
|
let target_pid = crate::arch::process::current_pid();
|
||||||
let target_tid = crate::arch::process::current_tid();
|
let target_tid = crate::arch::process::current_tid();
|
||||||
|
|
||||||
// #[cfg(feature = "debug-swap-verbose")]
|
#[cfg(feature = "debug-swap-verbose")]
|
||||||
println!(
|
println!(
|
||||||
"write_page - userspace activate for pid{:?}/tid{:?} for vaddr {:x?} -> offset {:x?}",
|
"write_page - userspace activate for pid{:?}/tid{:?} for vaddr {:x?} -> offset {:x?}",
|
||||||
target_pid, target_tid, page_vaddr_in_swapper, flash_offset
|
target_pid, target_tid, page_vaddr_in_swapper, flash_offset
|
||||||
|
|
@ -803,7 +803,7 @@ impl Swap {
|
||||||
// release the page from the swapper's address space
|
// release the page from the swapper's address space
|
||||||
MemoryManager::with_mut(|mm| {
|
MemoryManager::with_mut(|mm| {
|
||||||
let paddr = crate::arch::mem::virt_to_phys(swap_vaddr).unwrap() as usize;
|
let paddr = crate::arch::mem::virt_to_phys(swap_vaddr).unwrap() as usize;
|
||||||
// #[cfg(feature = "debug-swap-verbose")]
|
#[cfg(feature = "debug-swap-verbose")]
|
||||||
println!("Release flash backing page - paddr {:x}", paddr);
|
println!("Release flash backing page - paddr {:x}", paddr);
|
||||||
// this call unmaps the virtual page from the page table
|
// this call unmaps the virtual page from the page table
|
||||||
crate::arch::mem::unmap_page_inner(mm, swap_vaddr).expect("couldn't unmap page");
|
crate::arch::mem::unmap_page_inner(mm, swap_vaddr).expect("couldn't unmap page");
|
||||||
|
|
@ -815,7 +815,6 @@ impl Swap {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Unhalt IRQs
|
// Unhalt IRQs
|
||||||
println!("WriteToFlash exit - restore IRQ");
|
|
||||||
self.swap_restore_irq();
|
self.swap_restore_irq();
|
||||||
(pid, tid)
|
(pid, tid)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue