mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
cleanup some warnings
This commit is contained in:
parent
0b63979614
commit
721129781a
1 changed files with 2 additions and 1 deletions
|
|
@ -472,6 +472,7 @@ impl MiniElf {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
IniType::IniS => {
|
IniType::IniS => {
|
||||||
|
#[cfg(feature = "swap")]
|
||||||
if let Some(dest_offset) = pt_walk_swap(
|
if let Some(dest_offset) = pt_walk_swap(
|
||||||
tt,
|
tt,
|
||||||
section.virt as usize,
|
section.virt as usize,
|
||||||
|
|
@ -586,7 +587,7 @@ pub fn pt_walk(root: usize, va: usize) -> Option<usize> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(all(any(feature = "debug-print", feature = "swap"), not(feature = "atsama5d27")))]
|
#[cfg(all(feature = "debug-print", feature = "swap", not(feature = "atsama5d27")))]
|
||||||
pub fn pt_walk_swap(root: usize, va: usize, swap_root: usize) -> Option<usize> {
|
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_pt = unsafe { &mut (*((root << 12) as *mut PageTable)) };
|
||||||
let l1_entry_va = (l1_pt.entries[(va & 0xFFC0_0000) >> 22] >> 10) << 12;
|
let l1_entry_va = (l1_pt.entries[(va & 0xFFC0_0000) >> 22] >> 10) << 12;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue