mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
make the test-swapper crate kick out NOCOPY data
makes the test case more comprehensive
This commit is contained in:
parent
f2a8603e55
commit
49f3570d23
1 changed files with 6 additions and 1 deletions
|
|
@ -1,8 +1,12 @@
|
||||||
|
use std::sync::atomic::{AtomicU32, Ordering};
|
||||||
use std::thread::sleep;
|
use std::thread::sleep;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
use log::info;
|
use log::info;
|
||||||
|
|
||||||
|
// put here to force a .sbss/.bss section for loader testing
|
||||||
|
static mut LOOP_COUNT: AtomicU32 = AtomicU32::new(0);
|
||||||
|
|
||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
log_server::init_wait().unwrap();
|
log_server::init_wait().unwrap();
|
||||||
log::set_max_level(log::LevelFilter::Trace);
|
log::set_max_level(log::LevelFilter::Trace);
|
||||||
|
|
@ -11,7 +15,8 @@ fn main() -> ! {
|
||||||
const DELAY_MS: u64 = 2000;
|
const DELAY_MS: u64 = 2000;
|
||||||
|
|
||||||
for i in 0.. {
|
for i in 0.. {
|
||||||
info!("Loop #{}, waiting {} ms", i, DELAY_MS);
|
unsafe { LOOP_COUNT.store(i, Ordering::SeqCst) };
|
||||||
|
info!("Loop #{}, waiting {} ms", unsafe { LOOP_COUNT.load(Ordering::SeqCst) }, DELAY_MS);
|
||||||
sleep(Duration::from_millis(DELAY_MS));
|
sleep(Duration::from_millis(DELAY_MS));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue