From 0a4c77520d93e7fe6d3fcb4e23e556a6ff9f2915 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 8 Jan 2022 00:46:59 +0800 Subject: [PATCH] fix test compilation issue --- xous-rs/src/definitions.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xous-rs/src/definitions.rs b/xous-rs/src/definitions.rs index 18937f691..c27f7bd7c 100644 --- a/xous-rs/src/definitions.rs +++ b/xous-rs/src/definitions.rs @@ -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;