mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
cleanup warning on a debug routine
this is not used under certain combinations of e.g. printing and swap
This commit is contained in:
parent
b85b9d2dc2
commit
43988bde05
1 changed files with 1 additions and 0 deletions
|
|
@ -593,6 +593,7 @@ pub fn pt_walk(root: usize, va: usize) -> Option<usize> {
|
|||
}
|
||||
|
||||
#[cfg(all(any(feature = "debug-print", feature = "swap"), not(feature = "atsama5d27")))]
|
||||
#[allow(dead_code)]
|
||||
pub fn pt_walk_swap(root: usize, va: usize, swap_root: usize) -> Option<usize> {
|
||||
let l1_pt = unsafe { &mut (*((root << 12) as *mut PageTable)) };
|
||||
let l1_entry_va = (l1_pt.entries[(va & 0xFFC0_0000) >> 22] >> 10) << 12;
|
||||
|
|
|
|||
Loading…
Reference in a new issue