2020-04-06 11:13:12 +02:00
|
|
|
use cache_utils::flush;
|
|
|
|
use cache_utils::mmap::MMappedMemory;
|
|
|
|
|
|
|
|
pub fn main() {
|
2020-04-07 14:25:13 +02:00
|
|
|
let m = MMappedMemory::new(2 << 20);
|
2020-04-06 11:13:12 +02:00
|
|
|
let array = m.slice();
|
|
|
|
loop {
|
|
|
|
unsafe {
|
|
|
|
flush(&array[0]);
|
|
|
|
flush(&array[(1 << 8) ^ (1 << 12) ^ (1 << 10)]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|