mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix test compilation issue
This commit is contained in:
parent
6623d58f43
commit
0a4c77520d
1 changed files with 3 additions and 2 deletions
|
|
@ -39,16 +39,17 @@ pub const EC_REGION_LEN: u32 = 0x0008_0000;
|
|||
pub const PDDB_LOC: u32 = 0x0100_0000; // PDDB start
|
||||
pub const PDDB_LEN: u32 = EC_REGION_LOC - PDDB_LOC; // must be 64k-aligned (bulk erase block size) for proper function.
|
||||
|
||||
#[cfg(all(any(windows, unix), not(feature = "processes-as-threads")))]
|
||||
#[cfg(not(any(target_os = "none", target_os = "xous")))]
|
||||
use core::sync::atomic::AtomicU64;
|
||||
|
||||
|
||||
// Secretly, you can change this by setting the XOUS_SEED environment variable.
|
||||
// I don't lke environment variables because where do you document features like this?
|
||||
// But, this was the most expedient way to get all the threads in Hosted mode to pick up a seed.
|
||||
// The code that reads the varable this is all the way over in xous-rs\src\arch\hosted\mod.rs#29, and
|
||||
// it's glommed onto some other static process initialization code because I don't fully understand
|
||||
// what's going on over there.
|
||||
#[cfg(all(any(windows, unix), not(feature = "processes-as-threads")))]
|
||||
#[cfg(not(any(target_os = "none", target_os = "xous")))]
|
||||
pub static TESTING_RNG_SEED: AtomicU64 = AtomicU64::new(0);
|
||||
|
||||
pub mod exceptions;
|
||||
|
|
|
|||
Loading…
Reference in a new issue