diff --git a/services/shellchat/src/cmds/keys.rs b/services/shellchat/src/cmds/keys.rs index 64710219f..b2bc19223 100644 --- a/services/shellchat/src/cmds/keys.rs +++ b/services/shellchat/src/cmds/keys.rs @@ -18,7 +18,7 @@ impl Keys { xous::MemoryFlags::R, ).expect("couldn't map in testing range"); #[cfg(not(target_os = "none"))] // just make a dummy mapping to keep things from crashing in hosted mode - let sample = xous::syscall::map_memory( + let testing_range = xous::syscall::map_memory( None, None, TEST_SIZE, diff --git a/services/spinor/src/api.rs b/services/spinor/src/api.rs index 65539f3ee..34364f0b1 100644 --- a/services/spinor/src/api.rs +++ b/services/spinor/src/api.rs @@ -1,5 +1,6 @@ pub(crate) const SERVER_NAME_SPINOR: &str = "_SPINOR Hardware Interface Server_"; +#[cfg(target_os = "none")] pub const SPINOR_SIZE_BYTES: u32 = 128 * 1024 * 1024; // physical size of the device, used for hardware sanity checks on requests pub const SPINOR_ERASE_SIZE: u32 = 0x1000; // this is the smallest sector size. 64k sectors also exist, but this implementation does not use them. // note: logical lengths of regions are in xous::definitions diff --git a/services/spinor/src/main.rs b/services/spinor/src/main.rs index db0f2ccca..fda2bfc50 100644 --- a/services/spinor/src/main.rs +++ b/services/spinor/src/main.rs @@ -453,13 +453,12 @@ mod implementation { // a stub to try to avoid breaking hosted mode for as long as possible. #[cfg(not(target_os = "none"))] mod implementation { - use log::info; - + use crate::api::*; pub struct Spinor { } impl Spinor { - pub fn new() -> Spinor { + pub fn new(_conn: xous::CID) -> Spinor { Spinor { } } @@ -467,6 +466,9 @@ mod implementation { } pub fn resume(&self) { } + pub(crate) fn write_region(&mut self, _wr: &mut WriteRegion) -> SpinorError { + SpinorError::ImplementationError + } } }