mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
cleanup warning when swap is not used / hosted mode
This commit is contained in:
parent
39d549e9a0
commit
95a10e93ca
1 changed files with 2 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ const MINIELF_FLG_X: u8 = 4;
|
||||||
const MINIELF_FLG_EHF: u8 = 8;
|
const MINIELF_FLG_EHF: u8 = 8;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
#[allow(dead_code)] // suppresses unused warnings in hosted mode
|
||||||
pub enum CallbackType {
|
pub enum CallbackType {
|
||||||
/// args: irq_no, arg
|
/// args: irq_no, arg
|
||||||
Interrupt(usize, *mut usize),
|
Interrupt(usize, *mut usize),
|
||||||
|
|
@ -267,6 +268,7 @@ impl Process {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Reveal state for debugging outside the crate.
|
/// Reveal state for debugging outside the crate.
|
||||||
|
#[cfg(all(feature = "swap", baremetal))]
|
||||||
pub fn state(&self) -> ProcessState { self.state }
|
pub fn state(&self) -> ProcessState { self.state }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue