mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
un-break hosted mode
This commit is contained in:
parent
d98f296499
commit
e362e2579f
3 changed files with 7 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue