mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
add debug on evictpage
This commit is contained in:
parent
ff42e1ab20
commit
27d7fb414c
1 changed files with 2 additions and 0 deletions
|
|
@ -1027,6 +1027,8 @@ pub fn handle_inner(pid: PID, tid: TID, in_irq: bool, call: SysCall) -> SysCallR
|
|||
Swap::with_mut(|swap| swap.evict_page(pid, a2))
|
||||
} else {
|
||||
// don't allow kernel or swapper to be swapped out
|
||||
#[cfg(feature = "debug-swap")]
|
||||
println!("evict_page rejecting request for pid{}/{:x}: InvalidPID", pid, a2);
|
||||
Err(xous_kernel::Error::InvalidPID)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue